]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/lockedfile: fix function name in error message for test
authorchangwang ma <machangwang.cn@gmail.com>
Fri, 25 Oct 2024 15:16:12 +0000 (23:16 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 7 Nov 2024 19:57:37 +0000 (19:57 +0000)
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>

src/cmd/go/internal/lockedfile/internal/filelock/filelock_test.go

index d32bf06160572c23d10e96336804d191e1b5ccb1..035840db7e11ed211bc29e9b292cb2ec24f8be61 100644 (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
 }