mirror of
https://github.com/fluencelabs/redis
synced 2025-04-14 13:16:03 +00:00
Test: avoid time related false positive in RESTORE test.
This commit is contained in:
parent
91685eeeb1
commit
3c140e7bcd
@ -33,7 +33,7 @@ start_server {tags {"dump"}} {
|
|||||||
set now [clock milliseconds]
|
set now [clock milliseconds]
|
||||||
r restore foo [expr $now+3000] $encoded absttl
|
r restore foo [expr $now+3000] $encoded absttl
|
||||||
set ttl [r pttl foo]
|
set ttl [r pttl foo]
|
||||||
assert {$ttl >= 2990 && $ttl <= 3000}
|
assert {$ttl >= 2900 && $ttl <= 3100}
|
||||||
r get foo
|
r get foo
|
||||||
} {bar}
|
} {bar}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user