From 154b1f89eb774d983774a730a9872e592175a015 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 23 Jul 2024 09:42:53 +0300 Subject: [PATCH] Satisfy lint --- slog/handler_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") -- 2.48.1