mirror of
http://github.com/valkey-io/valkey
synced 2024-11-23 03:33:28 +00:00
Cluster test: check master -> slave role switch.
This commit is contained in:
parent
9b3bc82c1a
commit
6785b39eba
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user