Test: avoid time related false positive in RESTORE test.

This commit is contained in:
antirez 2018-10-13 14:17:11 +02:00
parent 91685eeeb1
commit 3c140e7bcd

View File

@ -33,7 +33,7 @@ start_server {tags {"dump"}} {
set now [clock milliseconds]
r restore foo [expr $now+3000] $encoded absttl
set ttl [r pttl foo]
assert {$ttl >= 2990 && $ttl <= 3000}
assert {$ttl >= 2900 && $ttl <= 3100}
r get foo
} {bar}