Skip to content

Commit 2287430

Browse files
committed
fix tests
1 parent 83e76d2 commit 2287430

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/common/testlogger/testlogger_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ package testlogger
2222

2323
import (
2424
"fmt"
25+
"go.uber.org/zap/zaptest"
2526
"os"
2627
"testing"
2728
"time"
@@ -131,7 +132,7 @@ func TestFallbackTestCore_Enabled(t *testing.T) {
131132
core := &fallbackTestCore{
132133
t: t,
133134
fallback: fallbackLogger.Core(),
134-
testing: testlogger.NewZap(t).Core(),
135+
testing: zaptest.NewLogger(t).Core(),
135136
completed: &atomic.Bool{},
136137
}
137138
// Debug is enabled in zaptest.Logger
@@ -145,8 +146,8 @@ func TestFallbackTestCore_Sync(t *testing.T) {
145146

146147
core := &fallbackTestCore{
147148
t: t,
148-
fallback: testlogger.NewZap(t).Core(),
149-
testing: testlogger.NewZap(t).Core(),
149+
fallback: zaptest.NewLogger(t).Core(),
150+
testing: zaptest.NewLogger(t).Core(),
150151
completed: &atomic.Bool{},
151152
}
152153
// Sync for testing logger must not fail.

0 commit comments

Comments
 (0)