Skip to content

Commit

Permalink
Fix non-constant format string in call in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Oct 26, 2024
1 parent 88acc73 commit 72e905f
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 @@ -121,7 +121,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 72e905f

Please sign in to comment.