From 7d81f39222360cf537f86f7c35111fbe53287885 Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Mon, 8 Mar 2021 20:53:53 +0200 Subject: [PATCH] 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. --- tests/unit/maxmemory.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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