aboutsummaryrefslogtreecommitdiffstats
path: root/skate/reduce_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'skate/reduce_test.go')
-rw-r--r--skate/reduce_test.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/skate/reduce_test.go b/skate/reduce_test.go
index 276dcc7..2da5218 100644
--- a/skate/reduce_test.go
+++ b/skate/reduce_test.go
@@ -4,8 +4,8 @@ import (
"bytes"
"reflect"
"testing"
- "time"
+ "github.com/benbjohnson/clock"
"github.com/kr/pretty"
"gitlab.com/internetarchive/refcat/skate/testutil"
"gitlab.com/internetarchive/refcat/skate/xio"
@@ -404,9 +404,7 @@ func TestZippyExact(t *testing.T) {
err: nil,
},
}
- timeNow = func() time.Time {
- return time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC)
- }
+ T = clock.NewMock()
for i, c := range cases {
a, b, err := xio.OpenTwo(c.a, c.b)
if err != nil {
@@ -453,9 +451,7 @@ func TestZippyBrefAugment(t *testing.T) {
err: nil,
},
}
- timeNow = func() time.Time {
- return time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC)
- }
+ T = clock.NewMock()
for i, c := range cases {
a, b, err := xio.OpenTwo(c.a, c.b)
if err != nil {