fix intermittent KEEPTTL test failure

This commit is contained in:
adanilov 2022-02-10 16:37:13 +00:00
parent 157b321098
commit ce0f53a9c9

View File

@ -423,7 +423,7 @@ start_server {tags {"expire"}} {
r set foo bar EX 100 r set foo bar EX 100
r set foo bar KEEPTTL r set foo bar KEEPTTL
set ttl [r ttl foo] set ttl [r ttl foo]
assert {$ttl <= 100 && $ttl > 90} assert {$ttl <= 100 && $ttl > 80}
} }
test {Roundtrip for subkey expires works} { test {Roundtrip for subkey expires works} {
@ -482,7 +482,7 @@ start_server {tags {"expire"}} {
after 2000 after 2000
r debug loadaof r debug loadaof
set ttl [r ttl foo] set ttl [r ttl foo]
assert {$ttl <= 98 && $ttl > 90} assert {$ttl <= 98 && $ttl > 80}
} }
test {GETEX use of PERSIST option should remove TTL} { test {GETEX use of PERSIST option should remove TTL} {