mirror of
https://github.com/golang/go
synced 2024-11-11 23:40:22 -07:00
encoding/json, internal/testenv: use Fatalf
Change-Id: I64dd09e76d811000a914776fdad47808e3895690 Reviewed-on: https://go-review.googlesource.com/20989 Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
parent
c16a61515f
commit
77f4b773e7
@ -1270,7 +1270,7 @@ func TestSliceOfCustomByte(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !reflect.DeepEqual(a, b) {
|
||||
t.Fatal("expected %v == %v", a, b)
|
||||
t.Fatalf("expected %v == %v", a, b)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ func GoToolPath(t *testing.T) string {
|
||||
}
|
||||
goBin, err := exec.LookPath("go" + exeSuffix)
|
||||
if err != nil {
|
||||
t.Fatal("cannot find go tool: %v", err)
|
||||
t.Fatalf("cannot find go tool: %v", err)
|
||||
}
|
||||
return goBin
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user