diff options
author | antirez <antirez@gmail.com> | 2014-07-25 16:09:31 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-07-25 16:09:31 +0200 |
commit | 0d35b467610baa39d23f76049cba0f09f54db0d4 (patch) | |
tree | e404a072d121b6a89e943269bd8f4c7707c9e992 | |
parent | ad87ec4fb750283663e2733376e74707e540976e (diff) | |
download | redis-0d35b467610baa39d23f76049cba0f09f54db0d4.tar.gz |
Cluster test: 03 unit speedup, don't send WAIT to slaves.
-rw-r--r-- | tests/cluster/tests/03-failover-loop.tcl | 7 |
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" { |