From: Brad Fitzpatrick Date: Tue, 27 Jun 2017 20:21:39 +0000 (+0000) Subject: net/http: whitelist another non-http goroutine in leak checker X-Git-Tag: go1.9rc1~152 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=33b3cc156886a6184a3ee2036e7748cee9b28eec;p=gostls13.git net/http: whitelist another non-http goroutine in leak checker Fixes #20810 Change-Id: I09365b2db50c41aa3383dd730859b6f2cdb78e63 Reviewed-on: https://go-review.googlesource.com/46836 Run-TryBot: Brad Fitzpatrick Reviewed-by: Emmanuel Odeke Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/net/http/main_test.go b/src/net/http/main_test.go index 230ebaacfb..21c850566c 100644 --- a/src/net/http/main_test.go +++ b/src/net/http/main_test.go @@ -37,6 +37,7 @@ func interestingGoroutines() (gs []string) { } stack := strings.TrimSpace(sl[1]) if stack == "" || + strings.Contains(stack, "testing.(*M).before.func1") || strings.Contains(stack, "os/signal.signal_recv") || strings.Contains(stack, "created by net.startServer") || strings.Contains(stack, "created by testing.RunTests") ||