Skip to content

Commit

Permalink
address lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Feb 26, 2021
1 parent acaa3a7 commit 7b3ffde
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions log_level_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ func TestLogLevel(t *testing.T) {
logger.Debugw("bar")
SetAllLoggers(LevelInfo)
logger.Debugw("baz")
logger.Sync()
reader.Close()
// ignore the error because
// https://github.com/uber-go/zap/issues/880
_ = logger.Sync()
if err := reader.Close(); err != nil {
t.Error(err)
}
<-done
}

0 comments on commit 7b3ffde

Please sign in to comment.