fix: go1.9 monotonic time is not symetric across serialization using ==

parent 2c0f26f0
...@@ -88,8 +88,8 @@ func TestProvidersSerialization(t *testing.T) { ...@@ -88,8 +88,8 @@ func TestProvidersSerialization(t *testing.T) {
t.Fatal("failed to load set correctly") t.Fatal("failed to load set correctly")
} }
if pt1 != lt1 { if !pt1.Equal(lt1) {
t.Fatal("time wasnt serialized correctly") t.Fatalf("time wasnt serialized correctly, %v != %v", pt1, lt1)
} }
lt2, ok := pset.set[p2] lt2, ok := pset.set[p2]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment