From e396dd3385ae14680204b241ceeef981ddced6e3 Mon Sep 17 00:00:00 2001 From: Vitah Lin Date: Fri, 9 Jan 2026 10:14:44 +0800 Subject: [PATCH] Fix flaky stream LRM test due to timing precision (#14674) --- tests/unit/maxmemory.tcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/maxmemory.tcl b/tests/unit/maxmemory.tcl index 4d4fd7cf9..26b25c1e3 100644 --- a/tests/unit/maxmemory.tcl +++ b/tests/unit/maxmemory.tcl @@ -648,7 +648,9 @@ start_server {tags {"maxmemory" "external:skip"}} { r xgroup create mystream mygroup 0 after 2000 r xreadgroup GROUP mygroup consumer1 STREAMS mystream > - assert_lessthan [r object idletime mystream] 1 + + # LRM should be updated (idletime should be smaller) + assert_lessthan_equal [r object idletime mystream] 1 } {} {slow} test {LRM: Keys with only read operations should be removed first} {