0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-12 06:32:17 -05:00

Use context.Background as context

This commit is contained in:
Gusted 2025-03-06 12:21:52 +00:00
parent ad949404b7
commit b563c2a217

View file

@ -4,6 +4,7 @@
package log
import (
"context"
"testing"
"github.com/stretchr/testify/assert"
@ -18,7 +19,7 @@ func TestLog(t *testing.T) {
Level: INFO,
})
logger := NewLoggerWithWriters(t.Context(), "test", bufferWriter)
logger := NewLoggerWithWriters(context.Background(), "test", bufferWriter)
testGeneric(logger, "I'm the generic value!")
logger.Close()