summaryrefslogtreecommitdiff
path: root/tests/cluster/tests/12-replica-migration-2.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cluster/tests/12-replica-migration-2.tcl')
-rw-r--r--tests/cluster/tests/12-replica-migration-2.tcl7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/cluster/tests/12-replica-migration-2.tcl b/tests/cluster/tests/12-replica-migration-2.tcl
index f0493e57e..ed680061c 100644
--- a/tests/cluster/tests/12-replica-migration-2.tcl
+++ b/tests/cluster/tests/12-replica-migration-2.tcl
@@ -45,11 +45,12 @@ test "Resharding all the master #0 slots away from it" {
}
-test "Master #0 should lose its replicas" {
+test "Master #0 who lost all slots should turn into a replica without replicas" {
wait_for_condition 1000 50 {
- [llength [lindex [R 0 role] 2]] == 0
+ [RI 0 role] == "slave" && [RI 0 connected_slaves] == 0
} else {
- fail "Master #0 still has replicas"
+ puts [R 0 info replication]
+ fail "Master #0 didn't turn itself into a replica"
}
}