print time.Time with %v

This commit is contained in:
Matthew Hooker 2016-12-06 16:37:30 -08:00
parent 5d06d468b4
commit 5ea0eb0ec6
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 1 additions and 1 deletions

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)
}
}