Skip to content

Commit

Permalink
test(e2e): use zaptest logger
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsong committed Jul 31, 2023
1 parent 631b652 commit c67a670
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/ee/ee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
"go.uber.org/zap/zaptest"

"github.com/kakao/varlog/pkg/types"
"github.com/kakao/varlog/pkg/varlog"
"github.com/kakao/varlog/tests/ee/cluster"
)

func TestVarlogAppend(t *testing.T) {
logger, err := zap.NewDevelopment()
require.NoError(t, err)
logger := zaptest.NewLogger(t)
defer func() {
_ = logger.Sync()
}()
Expand Down Expand Up @@ -91,8 +90,7 @@ func TestVarlogAppend(t *testing.T) {
func TestVarlogFailoverMR(t *testing.T) {
const numMRs = 3

logger, err := zap.NewDevelopment()
require.NoError(t, err)
logger := zaptest.NewLogger(t)
defer func() {
_ = logger.Sync()
}()
Expand Down Expand Up @@ -153,8 +151,7 @@ func TestVarlogFailoverMR(t *testing.T) {
func TestVarlogFailoverSN(t *testing.T) {
const numMRs = 3

logger, err := zap.NewDevelopment()
require.NoError(t, err)
logger := zaptest.NewLogger(t)
defer func() {
_ = logger.Sync()
}()
Expand Down Expand Up @@ -220,8 +217,7 @@ func TestVarlogFailoverSN(t *testing.T) {
}

func TestVarlogEnduranceExample(t *testing.T) {
logger, err := zap.NewDevelopment()
require.NoError(t, err)
logger := zaptest.NewLogger(t)
defer func() {
_ = logger.Sync()
}()
Expand Down

0 comments on commit c67a670

Please sign in to comment.