diff options
author | sundb <sundbcn@gmail.com> | 2021-06-17 03:01:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 22:01:37 +0300 |
commit | b586d5b567f78b27569f4ef11e5839f22d82e865 (patch) | |
tree | 63ed69be71414daa0d0c6588bf029e10f3006432 /tests/unit/querybuf.tcl | |
parent | c2b93ff83fa509e1001991ec09ace856949bec40 (diff) | |
download | redis-b586d5b567f78b27569f4ef11e5839f22d82e865.tar.gz |
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```.
Diffstat (limited to 'tests/unit/querybuf.tcl')
-rw-r--r-- | tests/unit/querybuf.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/querybuf.tcl b/tests/unit/querybuf.tcl index 955e184db..458f8e844 100644 --- a/tests/unit/querybuf.tcl +++ b/tests/unit/querybuf.tcl @@ -25,7 +25,7 @@ start_server {tags {"querybuf slow"}} { set rd [redis_deferring_client] $rd client setname 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 wait_for_condition 1000 10 { |