Merge pull request #613 from ChrisHines/windows-restart-test

Allow for low precision time.Now on Windows.
This commit is contained in:
Chris Bednarski 2015-12-21 12:19:30 -05:00
commit 6c94f1833a

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