From 5c42ef0912f836998ddeaaef754e3f6e6cc8bc39 Mon Sep 17 00:00:00 2001 From: Hristo Staykov Date: Tue, 26 May 2026 10:20:43 +0300 Subject: [PATCH] Relax fragmentation thresholds in multi-user defrag pubsub test Two clients subscribing to interleaved channels under different ACL users produce a slightly different allocation pattern than the single-user variant, causing fragmentation ratios to land just above 1.05. Raise both thresholds to 1.1, consistent with other defrag tests that have more complex allocation patterns. --- tests/unit/memefficiency.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/memefficiency.tcl b/tests/unit/memefficiency.tcl index cb5e8162c..809097711 100644 --- a/tests/unit/memefficiency.tcl +++ b/tests/unit/memefficiency.tcl @@ -618,7 +618,7 @@ run_solo {defrag} { } after 120 - assert_lessthan [s allocator_frag_ratio] 1.05 + assert_lessthan [s allocator_frag_ratio] 1.1 set batch_size 1000 for {set j 0} {$j < $n} {incr j} { @@ -651,7 +651,7 @@ run_solo {defrag} { fail "defrag not started." } - wait_for_defrag_stop 500 100 1.05 + wait_for_defrag_stop 500 100 1.1 after 120 }