uber-go / goleak

Goroutine leak detector
MIT License
4.48k stars 148 forks source link

Document incompatibility of VerifyNone with t.Parallel #107

Closed JacobOaks closed 11 months ago

JacobOaks commented 11 months ago

It's a known issue that goleak is incompatible with tests being run in parallel.

Unfortunately, there is no real solution to this issue.

This PR at least documents the incompatibility and suggests using VerifyTestMain instead.

codecov[bot] commented 11 months ago

Codecov Report

Merging #107 (7a1ce0a) into master (3e8744f) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #107   +/-   ##
=======================================
  Coverage   96.58%   96.58%           
=======================================
  Files           5        5           
  Lines         234      234           
=======================================
  Hits          226      226           
  Misses          5        5           
  Partials        3        3           
Files Coverage Δ
leaks.go 100.00% <ø> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more