Commit 77f4b773 authored by Dominik Honnef's avatar Dominik Honnef Committed by Dave Cheney

encoding/json, internal/testenv: use Fatalf

Change-Id: I64dd09e76d811000a914776fdad47808e3895690
Reviewed-on: https://go-review.googlesource.com/20989Reviewed-by: 's avatarDave Cheney <dave@cheney.net>
parent c16a6151
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment