Skip to content

Commit d4ae76d

Browse files
committed
fix slave buffer test suite false positives
it looks like on slow machines we're getting: [err]: slave buffer are counted correctly in tests/unit/maxmemory.tcl Expected condition '$slave_buf > 2*1024*1024' to be true (16914 > 2*1024*1024) this is a result of the slave waking up too early and eating the slave buffer before the traffic and the test ends.
1 parent 1a8d7cd commit d4ae76d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/maxmemory.tcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ proc test_slave_buffers {cmd_count payload_len limit_memory pipeline} {
182182

183183
# put the slave to sleep
184184
set rd_slave [redis_deferring_client]
185-
$rd_slave debug sleep 60
185+
$rd_slave debug sleep 300
186186

187187
# send some 10mb woth of commands that don't increase the memory usage
188188
if {$pipeline == 1} {

0 commit comments

Comments
 (0)