summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2023-03-26 13:46:58 +0800
committerGitHub <noreply@github.com>2023-03-26 08:46:58 +0300
commitaa2403ca98f6a39b6acd8373f8de1a7ba75162d5 (patch)
tree21d9dceb08028a4f361a52fc7579c4254506c6e6 /tests
parent2cc99c692c4984f5d9c42e4d2d25fa70125ef0a7 (diff)
downloadredis-aa2403ca98f6a39b6acd8373f8de1a7ba75162d5.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/support/cluster_util.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/support/cluster_util.tcl b/tests/support/cluster_util.tcl
index 8a58a4fa9..d80dcf062 100644
--- a/tests/support/cluster_util.tcl
+++ b/tests/support/cluster_util.tcl
@@ -36,7 +36,7 @@ proc wait_for_cluster_propagation {} {
# Wait for cluster size to be consistent across nodes.
proc wait_for_cluster_size {cluster_size} {
- wait_for_condition 50 100 {
+ wait_for_condition 1000 50 {
[cluster_size_consistent $cluster_size] eq 1
} else {
fail "cluster size did not reach a consistent size $cluster_size"