Skip to content

Commit b623422

Browse files
committed
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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent abc3d2c commit b623422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/os/os_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,10 +1533,10 @@ func testChtimes(t *testing.T, name string) {
15331533
t.Log(errormsg)
15341534
t.Log("Known NetBSD issue (atime not changed on fs mounted with noatime); ignoring.")
15351535
} else {
1536-
t.Errorf(errormsg)
1536+
t.Error(errormsg)
15371537
}
15381538
default:
1539-
t.Errorf(errormsg)
1539+
t.Error(errormsg)
15401540
}
15411541
}
15421542

0 commit comments

Comments
 (0)