Skip to content

Commit

Permalink
not all times on all platforms support ms precision, allowing +/- 1s …
Browse files Browse the repository at this point in the history
…in tests
  • Loading branch information
djherbis committed Aug 7, 2016
1 parent 32313e3 commit 95292e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions times_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func TestStat(t *testing.T) {
if err != nil {
t.Error(err.Error())
}
timespecTest(ts, newInterval(time.Now(), 50*time.Millisecond), t)
timespecTest(ts, newInterval(time.Now(), time.Second), t)
})
}

Expand All @@ -22,7 +22,7 @@ func TestGet(t *testing.T) {
if err != nil {
t.Error(err.Error())
}
timespecTest(Get(fi), newInterval(time.Now(), 50*time.Millisecond), t)
timespecTest(Get(fi), newInterval(time.Now(), time.Second), t)
})
}

Expand Down

0 comments on commit 95292e4

Please sign in to comment.