diff options
Diffstat (limited to 'tests/cluster')
-rw-r--r-- | tests/cluster/tests/00-base.tcl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cluster/tests/00-base.tcl b/tests/cluster/tests/00-base.tcl index e731bf6a3..6ff043497 100644 --- a/tests/cluster/tests/00-base.tcl +++ b/tests/cluster/tests/00-base.tcl @@ -62,3 +62,9 @@ test "Sanity for CLUSTER COUNTKEYSINSLOT" { test "It is possible to write and read from the cluster" { cluster_write_test 0 } + +test "Function no-cluster flag" { + R 1 function load lua test {redis.register_function('f1', function() return 'hello' end, {'no-cluster'})} + catch {R 1 fcall f1 0} e + assert_match {*Can not run function on cluster, 'no-cluster' flag is set*} $e +} |