Support go 1.15 (#434)

Fixes #428
This commit is contained in:
Thomas Pelletier
2020-09-10 21:39:16 -04:00
committed by GitHub
parent 9f8f82dfe8
commit 196ce3a1f6
2 changed files with 21 additions and 24 deletions
+1 -4
View File
@@ -2194,10 +2194,7 @@ func TestUnmarshalBadDuration(t *testing.T) {
result := testBadDuration{}
err := NewDecoder(buf).Decode(&result)
if err == nil {
t.Fatal()
}
if err.Error() != "(1, 1): Can't convert 1z(string) to time.Duration. time: unknown unit z in duration 1z" {
t.Fatalf("unexpected error: %s", err)
t.Fatal("expected bad duration error")
}
}