Fix querybuf test failure (#9091)

Fix test failure which introduced by #9003.
The following case will occur when querybuf expansion will allocate memory equal to (16*1024)k.
1) make use ```CFLAGS=-DNO_MALLOC_USABLE_SIZE```.
2) ```malloc``` will not allocate more under ```alpine```.
This commit is contained in:
sundb 2021-06-17 03:01:37 +08:00 committed by GitHub
parent c2b93ff83f
commit b586d5b567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ start_server {tags {"querybuf slow"}} {
set rd [redis_deferring_client] set rd [redis_deferring_client]
$rd client setname test_client $rd client setname test_client
set orig_test_client_qbuf [client_query_buffer test_client] set orig_test_client_qbuf [client_query_buffer test_client]
assert {$orig_test_client_qbuf > 16384 && $orig_test_client_qbuf < 32768} assert {$orig_test_client_qbuf >= 16384 && $orig_test_client_qbuf < 32768}
# Check that the initial query buffer is not resized if it is idle for more than 2s # Check that the initial query buffer is not resized if it is idle for more than 2s
wait_for_condition 1000 10 { wait_for_condition 1000 10 {