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:
Dominik Honnef 2016-03-22 06:37:16 +01:00 committed by Dave Cheney
parent c16a61515f
commit 77f4b773e7
2 changed files with 2 additions and 2 deletions

View file

@ -1270,7 +1270,7 @@ func TestSliceOfCustomByte(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
if !reflect.DeepEqual(a, b) { if !reflect.DeepEqual(a, b) {
t.Fatal("expected %v == %v", a, b) t.Fatalf("expected %v == %v", a, b)
} }
} }

View file

@ -74,7 +74,7 @@ func GoToolPath(t *testing.T) string {
} }
goBin, err := exec.LookPath("go" + exeSuffix) goBin, err := exec.LookPath("go" + exeSuffix)
if err != nil { if err != nil {
t.Fatal("cannot find go tool: %v", err) t.Fatalf("cannot find go tool: %v", err)
} }
return goBin return goBin
} }