From: Sergey Matveev Date: Tue, 23 Jul 2024 06:42:53 +0000 (+0300) Subject: Satisfy lint X-Git-Tag: v2.0.0~1 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=154b1f89eb774d983774a730a9872e592175a015;p=gorecfile.git Satisfy lint --- diff --git a/slog/handler_test.go b/slog/handler_test.go index ada1c86..108e8f2 100644 --- a/slog/handler_test.go +++ b/slog/handler_test.go @@ -17,6 +17,7 @@ package slog import ( "bytes" + "context" "log/slog" "testing" "time" @@ -33,7 +34,7 @@ func TestBasic(t *testing.T) { "Message", "Time", )) - if !logger.Enabled(nil, slog.LevelWarn) { + if !logger.Enabled(context.TODO(), slog.LevelWarn) { t.FailNow() } logger.Info("won't catch me")