Skip to content

Commit

Permalink
Merge pull request #8284 from heyitsanthony/whitelist-close
Browse files Browse the repository at this point in the history
testutil: whitelist os.(*file).close
  • Loading branch information
heyitsanthony committed Jul 20, 2017
2 parents cfbf666 + bb42d2b commit 46ee06a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/testutil/leak.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func interestingGoroutines() (gs []string) {
stack := strings.TrimSpace(sl[1])
if stack == "" ||
strings.Contains(stack, "sync.(*WaitGroup).Done") ||
strings.Contains(stack, "os.(*file).close") ||
strings.Contains(stack, "created by os/signal.init") ||
strings.Contains(stack, "runtime/panic.go") ||
strings.Contains(stack, "created by testing.RunTests") ||
Expand Down

0 comments on commit 46ee06a

Please sign in to comment.