Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0d35b467
Commit
0d35b467
authored
Jul 25, 2014
by
antirez
Browse files
Cluster test: 03 unit speedup, don't send WAIT to slaves.
parent
ad87ec4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/cluster/tests/03-failover-loop.tcl
View file @
0d35b467
...
@@ -54,8 +54,11 @@ while {[incr iterations -1]} {
...
@@ -54,8 +54,11 @@ while {[incr iterations -1]} {
catch
{
$cluster
set $key:$i $val:$i
}
err
catch
{
$cluster
set $key:$i $val:$i
}
err
assert
{
$err
eq
{
OK
}}
assert
{
$err
eq
{
OK
}}
}
}
# Wait for the write to propagate to the slave
# Wait for the write to propagate to the slave if we
R $tokill wait 1 20000
# are going to kill a master.
if
{
$role
eq
{
master
}}
{
R $tokill wait 1 20000
}
}
}
test
"Killing node #
$tokill
"
{
test
"Killing node #
$tokill
"
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment