From 3c140e7bcd9856c4a2faf3154fcf8f390645c8f3 Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 13 Oct 2018 14:17:11 +0200 Subject: [PATCH] Test: avoid time related false positive in RESTORE test. --- tests/unit/dump.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/dump.tcl b/tests/unit/dump.tcl index fa4f53b3b..09768b80e 100644 --- a/tests/unit/dump.tcl +++ b/tests/unit/dump.tcl @@ -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}