mirror of
https://github.com/golang/go
synced 2024-11-22 03:14:41 -07:00
json: fix Fatal call in test
R=rsc CC=golang-dev https://golang.org/cl/3751041
This commit is contained in:
parent
3832389036
commit
18b39f20ef
@ -112,7 +112,7 @@ func TestMarshalBadUTF8(t *testing.T) {
|
||||
t.Fatal("Marshal returned data")
|
||||
}
|
||||
if _, ok := err.(*InvalidUTF8Error); !ok {
|
||||
t.Fatal("Marshal did not return InvalidUTF8Error: %T %v", err, err)
|
||||
t.Fatalf("Marshal did not return InvalidUTF8Error: %T %v", err, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user