diff --git a/mackerel_test.go b/mackerel_test.go index c26f43d..318bb95 100644 --- a/mackerel_test.go +++ b/mackerel_test.go @@ -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)