From 1348405777ccb20079f7f4f338f50a367df72867 Mon Sep 17 00:00:00 2001 From: qzd Date: Fri, 2 Aug 2024 12:05:33 +0800 Subject: [PATCH] fix --- tests/swap/unit/client.tcl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/swap/unit/client.tcl b/tests/swap/unit/client.tcl index b4ba5958de4..e95b1a2af0b 100644 --- a/tests/swap/unit/client.tcl +++ b/tests/swap/unit/client.tcl @@ -35,10 +35,10 @@ start_server {tags "clients"} { } set r [redis $host $port] - wait_for_condition 10 100 { - [llength [regexp -inline -all {name=LOAD_HANDLER} [$r client list]]] == $load - } else { - fail "start client too slow" + while {1} { + if {[llength [regexp -inline -all {name=LOAD_HANDLER} [$r client list]]] == $load} { + break + } } $r client kill type normal