Skip to content

Commit

Permalink
Cluster test: catch FLUSHALL errors on node reset.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
antirez committed May 26, 2014
1 parent 69fa133 commit 3495caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cluster/tests/includes/init-tests.tcl
Expand Up @@ -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
}
Expand Down

0 comments on commit 3495caf

Please sign in to comment.