From 1d5b12c54ae52816d0d0577e17cbbc4def59d247 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 11 Jun 2014 16:23:13 +0200 Subject: [PATCH] Cluster test: rewrite config when resetting nodes. --- tests/cluster/tests/includes/init-tests.tcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/cluster/tests/includes/init-tests.tcl b/tests/cluster/tests/includes/init-tests.tcl index cc242542..fcfa46d1 100644 --- a/tests/cluster/tests/includes/init-tests.tcl +++ b/tests/cluster/tests/includes/init-tests.tcl @@ -23,8 +23,9 @@ test "Cluster nodes hard reset" { foreach_redis_id id { catch {R $id flushall} ; # May fail for readonly slaves. R $id cluster reset hard - R $id config set cluster-node-timeout 3000 R $id cluster set-config-epoch [expr {$id+1}] + R $id config set cluster-node-timeout 3000 + R $id config rewrite } }