Commit 6785b39e authored by antirez's avatar antirez
Browse files

Cluster test: check master -> slave role switch.

parent 9b3bc82c
......@@ -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"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment