mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
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
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:
parent
858a8800e2
commit
e396dd3385
1 changed files with 3 additions and 1 deletions
|
|
@ -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} {
|
||||
|
|
|
|||
Loading…
Reference in a new issue