mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -05:00
Fix replica count check in migration tests. (#10140)
Tests were not using loop index as node id, checking replica count of the same node over and over.
This commit is contained in:
parent
1af0a2c5ae
commit
72e1b5de4d
@ -18,7 +18,7 @@ test "Each master should have two replicas attached" {
|
||||
foreach_redis_id id {
|
||||
if {$id < 5} {
|
||||
wait_for_condition 1000 50 {
|
||||
[llength [lindex [R 0 role] 2]] == 2
|
||||
[llength [lindex [R $id role] 2]] == 2
|
||||
} else {
|
||||
fail "Master #$id does not have 2 slaves as expected"
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ test "Each master should have at least two replicas attached" {
|
||||
foreach_redis_id id {
|
||||
if {$id < 5} {
|
||||
wait_for_condition 1000 50 {
|
||||
[llength [lindex [R 0 role] 2]] >= 2
|
||||
[llength [lindex [R $id role] 2]] >= 2
|
||||
} else {
|
||||
fail "Master #$id does not have 2 slaves as expected"
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ test "Each master should have at least two replicas attached" {
|
||||
foreach_redis_id id {
|
||||
if {$id < 5} {
|
||||
wait_for_condition 1000 50 {
|
||||
[llength [lindex [R 0 role] 2]] >= 2
|
||||
[llength [lindex [R $id role] 2]] >= 2
|
||||
} else {
|
||||
fail "Master #$id does not have 2 slaves as expected"
|
||||
}
|
||||
@ -61,7 +61,7 @@ test "Each master should have at least two replicas attached" {
|
||||
foreach_redis_id id {
|
||||
if {$id < 5} {
|
||||
wait_for_condition 1000 50 {
|
||||
[llength [lindex [R 0 role] 2]] >= 2
|
||||
[llength [lindex [R $id role] 2]] >= 2
|
||||
} else {
|
||||
fail "Master #$id does not have 2 slaves as expected"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user