diff options
author | antirez <antirez@gmail.com> | 2012-01-26 16:45:08 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-01-26 16:45:08 +0100 |
commit | 6c29410117b100b13764280bb3c58604b769c4fc (patch) | |
tree | 7e39e17e751b2cf7d01f174a43cc60e8ef1851a6 /tests/unit/other.tcl | |
parent | 7f7a13b27b4a09a0df1841c69af35306d4464327 (diff) | |
download | redis-6c29410117b100b13764280bb3c58604b769c4fc.tar.gz |
false positive in expire tests mitigated with a sleep, but other solutions exist if needed later.
Diffstat (limited to 'tests/unit/other.tcl')
-rw-r--r-- | tests/unit/other.tcl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/other.tcl b/tests/unit/other.tcl index 6bdb0b3f9..14fd73ac7 100644 --- a/tests/unit/other.tcl +++ b/tests/unit/other.tcl @@ -141,6 +141,11 @@ start_server {tags {"other"}} { # Reload and check 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 set ttl [r ttl x] assert {$ttl > 900 && $ttl <= 1000} |