Unverified Commit aa2403ca authored by Binbin's avatar Binbin Committed by GitHub
Browse files

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.
parent 2cc99c69
...@@ -36,7 +36,7 @@ proc wait_for_cluster_propagation {} { ...@@ -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"
......
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