Fix flaky stream LRM test due to timing precision (#14674)
Some checks failed
CI / test-ubuntu-latest (push) Has been cancelled
CI / test-sanitizer-address (push) Has been cancelled
CI / build-debian-old (push) Has been cancelled
CI / build-macos-latest (push) Has been cancelled
CI / build-32bit (push) Has been cancelled
CI / build-libc-malloc (push) Has been cancelled
CI / build-centos-jemalloc (push) Has been cancelled
CI / build-old-chain-jemalloc (push) Has been cancelled
Codecov / code-coverage (push) Has been cancelled
External Server Tests / test-external-standalone (push) Has been cancelled
External Server Tests / test-external-cluster (push) Has been cancelled
External Server Tests / test-external-nodebug (push) Has been cancelled
Spellcheck / Spellcheck (push) Has been cancelled

This commit is contained in:
Vitah Lin 2026-01-09 10:14:44 +08:00 committed by GitHub
parent 858a8800e2
commit e396dd3385
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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} {