summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-07-25 16:09:31 +0200
committerantirez <antirez@gmail.com>2014-07-25 16:09:31 +0200
commit0d35b467610baa39d23f76049cba0f09f54db0d4 (patch)
treee404a072d121b6a89e943269bd8f4c7707c9e992
parentad87ec4fb750283663e2733376e74707e540976e (diff)
downloadredis-0d35b467610baa39d23f76049cba0f09f54db0d4.tar.gz
Cluster test: 03 unit speedup, don't send WAIT to slaves.
-rw-r--r--tests/cluster/tests/03-failover-loop.tcl7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/cluster/tests/03-failover-loop.tcl b/tests/cluster/tests/03-failover-loop.tcl
index 4106f146d..3a966732a 100644
--- a/tests/cluster/tests/03-failover-loop.tcl
+++ b/tests/cluster/tests/03-failover-loop.tcl
@@ -54,8 +54,11 @@ while {[incr iterations -1]} {
catch {$cluster set $key:$i $val:$i} err
assert {$err eq {OK}}
}
- # Wait for the write to propagate to the slave
- R $tokill wait 1 20000
+ # Wait for the write to propagate to the slave if we
+ # are going to kill a master.
+ if {$role eq {master}} {
+ R $tokill wait 1 20000
+ }
}
test "Killing node #$tokill" {