From 2a9a710ae666c91c124eb6600a507a9e656bd0d7 Mon Sep 17 00:00:00 2001 From: Chris Hines Date: Mon, 21 Dec 2015 10:43:45 -0500 Subject: [PATCH] Allow for low precision time.Now on Windows. --- client/restarts_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/restarts_test.go b/client/restarts_test.go index 79e4d2a56..4c84193c5 100644 --- a/client/restarts_test.go +++ b/client/restarts_test.go @@ -44,8 +44,8 @@ func TestClient_RestartTracker_ModeDelay(t *testing.T) { if !actual { t.Fail() } - if !(when > p.Delay && when < p.Interval) { - t.Fatalf("NextRestart() returned %v; want less than %v and more than %v", when, p.Interval, p.Delay) + if !(when > p.Delay && when <= p.Interval) { + t.Fatalf("NextRestart() returned %v; want > %v and <= %v", when, p.Delay, p.Interval) } } }