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
6785b39e
Commit
6785b39e
authored
Jun 10, 2014
by
antirez
Browse files
Cluster test: check master -> slave role switch.
parent
9b3bc82c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/cluster/tests/02-failover.tcl
View file @
6785b39e
...
...
@@ -33,3 +33,15 @@ test "Cluster is writable" {
test
"Instance #5 is now a master"
{
assert
{[
RI 5 role
]
eq
{
master
}}
}
test
"Restarting the previously killed master node"
{
restart_instance redis 0
}
test
"Instance #0 gets converted into a slave"
{
wait_for_condition 1000 50
{
[
RI 0 role
]
eq
{
slave
}
}
else
{
fail
"Old master was not converted into slave"
}
}
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