inconshreveable / log15

Structured, composable logging for Go
https://godoc.org/github.com/inconshreveable/log15
Other
1.1k stars 145 forks source link

Call t.Fatalf from main goroutine #132

Closed kevinburke closed 7 years ago

kevinburke commented 7 years ago

staticcheck warns about calling t.Fatalf from a goroutine. From the docs for t.FailNow:

FailNow must be called from the goroutine running the test or benchmark function, not from other goroutines created during the test.

https://godoc.org/testing#T.FailNow

kevinburke commented 7 years ago

done