Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
benbjohnson committed Jun 9, 2015
1 parent a6ac602 commit 52ab871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clock_test.go
Expand Up @@ -264,13 +264,13 @@ func TestMock_AfterFunc_Stop(t *testing.T) {
func TestMock_Now(t *testing.T) {
clock := NewMock()
if now := clock.Now(); !now.Equal(time.Unix(0, 0)) {
t.Fatalf("expected epoch, got: ", now)
t.Fatalf("expected epoch, got: %v", now)
}

// Add 10 seconds and check the time.
clock.Add(10 * time.Second)
if now := clock.Now(); !now.Equal(time.Unix(10, 0)) {
t.Fatalf("expected epoch, got: ", now)
t.Fatalf("expected epoch, got: %v", now)
}
}

Expand Down

0 comments on commit 52ab871

Please sign in to comment.