summaryrefslogtreecommitdiff
path: root/tests/cluster/tests/00-base.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cluster/tests/00-base.tcl')
-rw-r--r--tests/cluster/tests/00-base.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/cluster/tests/00-base.tcl b/tests/cluster/tests/00-base.tcl
index 6ff043497..ff5044496 100644
--- a/tests/cluster/tests/00-base.tcl
+++ b/tests/cluster/tests/00-base.tcl
@@ -64,7 +64,9 @@ test "It is possible to write and read from the cluster" {
}
test "Function no-cluster flag" {
- R 1 function load lua test {redis.register_function('f1', function() return 'hello' end, {'no-cluster'})}
+ R 1 function load lua test {
+ redis.register_function{function_name='f1', callback=function() return 'hello' end, flags={'no-cluster'}}
+ }
catch {R 1 fcall f1 0} e
assert_match {*Can not run function on cluster, 'no-cluster' flag is set*} $e
}