diff options
author | antirez <antirez@gmail.com> | 2014-05-26 11:00:11 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-05-26 11:00:11 +0200 |
commit | 3495caf4fb323a76d5206a35aab5dce42a722ea2 (patch) | |
tree | bc673d857cb2cf98c7b6ffb16c1ec702f8e41a41 | |
parent | 69fa133ec22dca419fedc932952b8bc29d40937f (diff) | |
download | redis-3495caf4fb323a76d5206a35aab5dce42a722ea2.tar.gz |
Cluster test: catch FLUSHALL errors on node reset.
FLUSHALL will fail on read-only slaves, but there the command is not
needed in order to reset the instance with CLUSTER RESET so errors can
be ignored.
-rw-r--r-- | tests/cluster/tests/includes/init-tests.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cluster/tests/includes/init-tests.tcl b/tests/cluster/tests/includes/init-tests.tcl index 9f34be181..75417f20c 100644 --- a/tests/cluster/tests/includes/init-tests.tcl +++ b/tests/cluster/tests/includes/init-tests.tcl @@ -21,7 +21,7 @@ test "Cluster nodes are reachable" { test "Cluster nodes hard reset" { foreach_redis_id id { - R $id flushall + catch {R $id flushall} ; # May fail for readonly slaves. R $id cluster reset hard R $id config set cluster-node-timeout 3000 } |