Skip to content

Commit

Permalink
Fix query buffer resized test flakiness
Browse files Browse the repository at this point in the history
Signed-off-by: Uri Yagelnik <[email protected]>
  • Loading branch information
uriyage committed Jun 13, 2024
1 parent b546dd2 commit 200cb3a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/unit/querybuf.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 200cb3a

Please sign in to comment.