From aa2403ca98f6a39b6acd8373f8de1a7ba75162d5 Mon Sep 17 00:00:00 2001 From: Binbin Date: Sun, 26 Mar 2023 13:46:58 +0800 Subject: [PATCH] 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. --- tests/support/cluster_util.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"