]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: whitelist another non-http goroutine in leak checker
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 27 Jun 2017 20:21:39 +0000 (20:21 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 27 Jun 2017 20:45:38 +0000 (20:45 +0000)
Fixes #20810

Change-Id: I09365b2db50c41aa3383dd730859b6f2cdb78e63
Reviewed-on: https://go-review.googlesource.com/46836
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/net/http/main_test.go

index 230ebaacfb46b029e340b9e6fa332005078d45ed..21c850566cc2b5f4996ea86b71ade59fe5cc914c 100644 (file)
@@ -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") ||