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:
parent
ad949404b7
commit
b563c2a217
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue