]> Cypherpunks repositories - gorecfile.git/commitdiff
Satisfy lint
authorSergey Matveev <stargrave@stargrave.org>
Tue, 23 Jul 2024 06:42:53 +0000 (09:42 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 23 Jul 2024 06:42:53 +0000 (09:42 +0300)
slog/handler_test.go

index ada1c8600de8b269b6cde5ee60c89fbc0f0224f1..108e8f2ade5d7e6e1ac5a5bb457f01118c8f1887 100644 (file)
@@ -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")