1
0
mirror of https://github.com/golang/go synced 2024-11-14 17:30:29 -07:00

cmd/go/internal/lockedfile: fix function name in error message for test

Change-Id: I1477c6249196dba58908ff8cc881914bf602ddd8
Reviewed-on: https://go-review.googlesource.com/c/go/+/622615
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Auto-Submit: Sam Thanawalla <samthanawalla@google.com>
This commit is contained in:
changwang ma 2024-10-25 23:16:12 +08:00 committed by Gopher Robot
parent bccd686f9d
commit acad0c2e9a

View File

@ -66,10 +66,10 @@ func mustOpen(t *testing.T, name string) *os.File {
f, err := os.OpenFile(name, os.O_RDWR, 0)
if err != nil {
t.Fatalf("os.Open(%q) = %v", name, err)
t.Fatalf("os.OpenFile(%q) = %v", name, err)
}
t.Logf("fd %d = os.Open(%q)", f.Fd(), name)
t.Logf("fd %d = os.OpenFile(%q)", f.Fd(), name)
return f
}