uber-go / goleak

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

Ignore testing.runFuzzing and testing.runFuzzTests #105

Closed EstebanOlmedo closed 1 year ago

EstebanOlmedo commented 1 year ago

When Fuzz testing, if the -fuzz flag is used then the fuzzing engine is used to generate test cases out of the seed corpus, this causes testing.runFuzzTests to be blocked until a failing input is found or there is a signal to stop generating. On the other hand testing.runFuzzTests is called even without the use of the -fuzz flag, executes the input testing with all the elements in the seed corpus and it's blocked until every test has run.

On both cases, goleak detects them as leaking goroutines, but this are expected goroutines.

Internal Ref: GO-2002 Fix #104

codecov[bot] commented 1 year ago

Codecov Report

Merging #105 (06ae223) into master (4a14d38) will increase coverage by 0.05%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
+ Coverage   96.52%   96.58%   +0.05%     
==========================================
  Files           5        5              
  Lines         230      234       +4     
==========================================
+ Hits          222      226       +4     
  Misses          5        5              
  Partials        3        3              
Impacted Files Coverage Δ
options.go 100.00% <100.00%> (ø)

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