Commit d4ae76d1 authored by Oran Agra's avatar Oran Agra
Browse files

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.
parent 1a8d7cd9
...@@ -182,7 +182,7 @@ proc test_slave_buffers {cmd_count payload_len limit_memory pipeline} { ...@@ -182,7 +182,7 @@ proc test_slave_buffers {cmd_count payload_len limit_memory pipeline} {
# put the slave to sleep # put the slave to sleep
set rd_slave [redis_deferring_client] set rd_slave [redis_deferring_client]
$rd_slave debug sleep 60 $rd_slave debug sleep 300
# send some 10mb woth of commands that don't increase the memory usage # send some 10mb woth of commands that don't increase the memory usage
if {$pipeline == 1} { if {$pipeline == 1} {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment