From c5c63a32188ad0df59c2014da3dbb74e2f252692 Mon Sep 17 00:00:00 2001 From: Uri Yagelnik Date: Thu, 13 Jun 2024 07:51:49 +0000 Subject: [PATCH] Fix query buffer resized test flakiness --- tests/unit/querybuf.tcl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/unit/querybuf.tcl b/tests/unit/querybuf.tcl index 913b993b1b..519743d248 100644 --- a/tests/unit/querybuf.tcl +++ b/tests/unit/querybuf.tcl @@ -39,7 +39,13 @@ start_server {tags {"querybuf slow"}} { # Send partial command to client to make sure it doesn't use the shared qb. $rd write "*3\r\n\$3\r\nset\r\n\$2\r\na" $rd flush - after 100 + # Wait for the client to start using a private query buffer. + wait_for_condition 1000 10 { + [client_query_buffer test_client] > 0 + } else { + fail "client should start using a private query buffer" + } + # send the rest of the command $rd write "a\r\n\$1\r\nb\r\n" $rd flush