mirror of
https://github.com/fluencelabs/redis
synced 2025-03-31 23:01:03 +00:00
false positive in expire tests mitigated with a sleep, but other solutions exist if needed later.
This commit is contained in:
parent
7f7a13b27b
commit
6c29410117
@ -141,6 +141,11 @@ start_server {tags {"other"}} {
|
|||||||
|
|
||||||
# Reload and check
|
# Reload and check
|
||||||
waitForBgrewriteaof r
|
waitForBgrewriteaof r
|
||||||
|
# We need to wait two seconds to avoid false positives here, otherwise
|
||||||
|
# the DEBUG LOADAOF command may read a partial file.
|
||||||
|
# Another solution would be to set the fsync policy to no, since this
|
||||||
|
# prevents write() to be delayed by the completion of fsync().
|
||||||
|
after 2000
|
||||||
r debug loadaof
|
r debug loadaof
|
||||||
set ttl [r ttl x]
|
set ttl [r ttl x]
|
||||||
assert {$ttl > 900 && $ttl <= 1000}
|
assert {$ttl > 900 && $ttl <= 1000}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user