From 3495caf4fb323a76d5206a35aab5dce42a722ea2 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 26 May 2014 11:00:11 +0200 Subject: [PATCH] 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. --- tests/cluster/tests/includes/init-tests.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cluster/tests/includes/init-tests.tcl b/tests/cluster/tests/includes/init-tests.tcl index 9f34be181b86..75417f20c75f 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 }