Skip to content

Commit

Permalink
log: fix data race by running test which manipulates global state seq…
Browse files Browse the repository at this point in the history
…uentially
  • Loading branch information
leonklingele committed Sep 10, 2023
1 parent 6de9341 commit 4c4d347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log/fiberlog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ func Test_DefaultSystemLogger(t *testing.T) {
utils.AssertEqual(t, logger, defaultL)
}

//nolint:paralleltest // TODO: Must be run sequentially due to overwriting the default logger global
func Test_SetLogger(t *testing.T) {
t.Parallel()
setLog := &defaultLogger{
stdlog: log.New(os.Stderr, "", log.LstdFlags|log.Lshortfile|log.Lmicroseconds),
depth: 6,
Expand Down

0 comments on commit 4c4d347

Please sign in to comment.