From b62342216d632d972f1438b4f542f89c4b4a331d Mon Sep 17 00:00:00 2001 From: Tim King Date: Tue, 6 Aug 2024 10:06:39 -0700 Subject: [PATCH] os: remove non-constant format string in t.Errorf call Fixes #68744 Change-Id: I12db785fc21c18db69d57cf91e2190b4a3df2484 Reviewed-on: https://go-review.googlesource.com/c/go/+/603515 Reviewed-by: Robert Griesemer LUCI-TryBot-Result: Go LUCI --- src/os/os_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/os_test.go b/src/os/os_test.go index 46c4f138c3..e421795380 100644 --- a/src/os/os_test.go +++ b/src/os/os_test.go @@ -1533,10 +1533,10 @@ func testChtimes(t *testing.T, name string) { t.Log(errormsg) t.Log("Known NetBSD issue (atime not changed on fs mounted with noatime); ignoring.") } else { - t.Errorf(errormsg) + t.Error(errormsg) } default: - t.Errorf(errormsg) + t.Error(errormsg) } } -- 2.48.1