Skip to content

Commit

Permalink
Merge pull request ipfs#90 from libp2p/fix/go1.9/time-monotonic-really
Browse files Browse the repository at this point in the history
fix: go1.9 monotonic time (for real this time)
  • Loading branch information
Stebalien authored Sep 14, 2017
2 parents 0d8cb32 + cc9c360 commit 228ce2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:

go:
- 1.8
- 1.9

install: true

Expand Down
4 changes: 2 additions & 2 deletions providers/providers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ func TestProvidersSerialization(t *testing.T) {
t.Fatal("failed to load set correctly")
}

if pt2 != lt2 {
t.Fatal("time wasnt serialized correctly")
if !pt2.Equal(lt2) {
t.Fatalf("time wasnt serialized correctly, %v != %v", pt1, lt1)
}
}

Expand Down

0 comments on commit 228ce2e

Please sign in to comment.