Fix redis-cli cluster test timing issue (#11887)
This test fails sporadically: ``` *** [err]: Migrate the last slot away from a node using redis-cli in tests/unit/cluster/cli.tcl cluster size did not reach a consistent size 4 ``` I guess the time (5s) of wait_for_cluster_size is not enough, usually, the waiting time for our other tests for cluster consistency is 50s, so also changing it to 50s.
This commit is contained in:
parent
2cc99c692c
commit
aa2403ca98
@ -36,7 +36,7 @@ proc wait_for_cluster_propagation {} {
|
|||||||
|
|
||||||
# Wait for cluster size to be consistent across nodes.
|
# Wait for cluster size to be consistent across nodes.
|
||||||
proc wait_for_cluster_size {cluster_size} {
|
proc wait_for_cluster_size {cluster_size} {
|
||||||
wait_for_condition 50 100 {
|
wait_for_condition 1000 50 {
|
||||||
[cluster_size_consistent $cluster_size] eq 1
|
[cluster_size_consistent $cluster_size] eq 1
|
||||||
} else {
|
} else {
|
||||||
fail "cluster size did not reach a consistent size $cluster_size"
|
fail "cluster size did not reach a consistent size $cluster_size"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user