Allow for low precision time.Now on Windows.

This commit is contained in:
Chris Hines
2015-12-21 10:43:45 -05:00
parent 8d25368462
commit dff2460d03

View File

@@ -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)
}
}
}