Skip to content

Commit

Permalink
Merge pull request #613 from ChrisHines/windows-restart-test
Browse files Browse the repository at this point in the history
Allow for low precision time.Now on Windows.
  • Loading branch information
cbednarski committed Dec 21, 2015
2 parents 362fb43 + dff2460 commit 25f69a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/restarts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 25f69a6

Please sign in to comment.