mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-25 04:57:31 +00: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
|
package log
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
@ -18,7 +19,7 @@ func TestLog(t *testing.T) {
|
||||||
Level: INFO,
|
Level: INFO,
|
||||||
})
|
})
|
||||||
|
|
||||||
logger := NewLoggerWithWriters(t.Context(), "test", bufferWriter)
|
logger := NewLoggerWithWriters(context.Background(), "test", bufferWriter)
|
||||||
|
|
||||||
testGeneric(logger, "I'm the generic value!")
|
testGeneric(logger, "I'm the generic value!")
|
||||||
logger.Close()
|
logger.Close()
|
||||||
|
|
Loading…
Add table
Reference in a new issue