Skip to content

Commit

Permalink
Merge pull request #162 from itchyny/fix-non-constant-format-string-t…
Browse files Browse the repository at this point in the history
…racef

Fix non-constant format string in call in tests
  • Loading branch information
yohfee authored Oct 28, 2024
2 parents acddc97 + 72e905f commit 04b1b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mackerel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func TestPrivateTracef(t *testing.T) {
defer log.SetFlags(oflags)
log.SetFlags(0)

msg := "test\n"
const msg = "test\n"
t.Run("Logger+PrioritizedLogger", func(t *testing.T) {
var c Client
c.Logger = log.New(&logbuf, "", 0)
Expand Down

0 comments on commit 04b1b9d

Please sign in to comment.