mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue