Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Fix race for grace_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
im-kulikov committed Apr 19, 2021
1 parent 568a7ab commit 9a16076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grace/grace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

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

func TestGrace(t *testing.T) {
Expand All @@ -17,7 +17,7 @@ func TestGrace(t *testing.T) {
t.Run(fmt.Sprintf("should cancel context on %s signal", sig), func(t *testing.T) {
is := assert.New(t)

log := zaptest.NewLogger(t)
log := zap.NewNop()
ctx := NewGracefulContext(log)

// waiting to run the goroutine and channel of signals
Expand Down

0 comments on commit 9a16076

Please sign in to comment.