fix intermittent KEEPTTL test failure
This commit is contained in:
parent
157b321098
commit
ce0f53a9c9
@ -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} {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user