From 95292e44976d1217cf3611dc7c8d9466877d3ed5 Mon Sep 17 00:00:00 2001 From: djherbis Date: Sun, 7 Aug 2016 12:55:41 -0700 Subject: [PATCH] not all times on all platforms support ms precision, allowing +/- 1s in tests --- times_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/times_test.go b/times_test.go index c502600..db3586e 100644 --- a/times_test.go +++ b/times_test.go @@ -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) }) } @@ -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) }) }