Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
3vilhamster committed Nov 8, 2024
1 parent 83e76d2 commit 2287430
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/common/testlogger/testlogger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ package testlogger

import (
"fmt"
"go.uber.org/zap/zaptest"
"os"
"testing"
"time"
Expand Down Expand Up @@ -131,7 +132,7 @@ func TestFallbackTestCore_Enabled(t *testing.T) {
core := &fallbackTestCore{
t: t,
fallback: fallbackLogger.Core(),
testing: testlogger.NewZap(t).Core(),
testing: zaptest.NewLogger(t).Core(),
completed: &atomic.Bool{},
}
// Debug is enabled in zaptest.Logger
Expand All @@ -145,8 +146,8 @@ func TestFallbackTestCore_Sync(t *testing.T) {

core := &fallbackTestCore{
t: t,
fallback: testlogger.NewZap(t).Core(),
testing: testlogger.NewZap(t).Core(),
fallback: zaptest.NewLogger(t).Core(),
testing: zaptest.NewLogger(t).Core(),
completed: &atomic.Bool{},
}
// Sync for testing logger must not fail.
Expand Down

0 comments on commit 2287430

Please sign in to comment.