pkpkg/testutil/leak.go: Allowlist created by testing.runTests.func1

This commit is contained in:
Lili Cosic 2021-04-07 17:20:52 +02:00
parent b19eb0f339
commit 91bed2e01f

View File

@ -118,6 +118,7 @@ func interestingGoroutines() (gs []string) {
}
stack := strings.TrimSpace(sl[1])
if stack == "" ||
strings.Contains(stack, "created by testing.runTests.func1") ||
strings.Contains(stack, "sync.(*WaitGroup).Done") ||
strings.Contains(stack, "os.(*file).close") ||
strings.Contains(stack, "created by os/signal.init") ||