summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2021-03-08 20:53:53 +0200
committerGitHub <noreply@github.com>2021-03-08 20:53:53 +0200
commit7d81f39222360cf537f86f7c35111fbe53287885 (patch)
tree311abccf7055b2cfc15ca02b3525f2d2ee5401ae /tests
parente58118cda6cacb5a845a9cf8eda45074470e31b2 (diff)
downloadredis-7d81f39222360cf537f86f7c35111fbe53287885.tar.gz
Fix flaky unit/maxmemory test on MacOS/BSD. (#8619)
It seems like non-Linux sockets may be less greedy, resulting with more transient client output buffers. Haven't proven this but empirically when stressing this test on non-Linux tends to exhibit increased mem_clients_normal values.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/maxmemory.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/maxmemory.tcl b/tests/unit/maxmemory.tcl
index ed5657860..99321acfe 100644
--- a/tests/unit/maxmemory.tcl
+++ b/tests/unit/maxmemory.tcl
@@ -178,7 +178,7 @@ proc test_slave_buffers {test_name cmd_count payload_len limit_memory pipeline}
set orig_client_buf [s -1 mem_clients_normal]
set orig_mem_not_counted_for_evict [s -1 mem_not_counted_for_evict]
set orig_used_no_repl [expr {$orig_used - $orig_mem_not_counted_for_evict}]
- set limit [expr {$orig_used - $orig_mem_not_counted_for_evict + 20*1024}]
+ set limit [expr {$orig_used - $orig_mem_not_counted_for_evict + 32*1024}]
if {$limit_memory==1} {
$master config set maxmemory $limit