print time.Time with %v

This commit is contained in:
Matthew Hooker
2016-12-06 16:47:08 -08:00
parent 5d06d468b4
commit 5ea0eb0ec6
+1 -1
View File
@@ -133,7 +133,7 @@ func TestFuncIsotime(t *testing.T) {
currentTime := time.Now().UTC()
if currentTime.Sub(val) > 2*time.Second {
t.Fatalf("val: %d (current: %d)", val, currentTime)
t.Fatalf("val: %v (current: %v)", val, currentTime)
}
}