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
2ed450c3
You need to sign in or sign up before continuing.
Commit
2ed450c3
authored
Jun 10, 2014
by
antirez
Browse files
Cluster test: 02 unit more reliable waiting for slave sync.
parent
9865ce0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/cluster/tests/02-failover.tcl
View file @
2ed450c3
...
@@ -18,6 +18,14 @@ test "Instance #5 is a slave" {
...
@@ -18,6 +18,14 @@ test "Instance #5 is a slave" {
assert
{[
RI 5 role
]
eq
{
slave
}}
assert
{[
RI 5 role
]
eq
{
slave
}}
}
}
test
"Instance #5 synced with the master"
{
wait_for_condition 1000 50
{
[
RI 5 master_link_status
]
eq
{
up
}
}
else
{
fail
"Instance #5 master link status is not up"
}
}
set current_epoch
[
CI 1 cluster_current_epoch
]
set current_epoch
[
CI 1 cluster_current_epoch
]
test
"Killing one master node"
{
test
"Killing one master node"
{
...
...
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