From: Brad Fitzpatrick Date: Fri, 15 Mar 2013 23:50:54 +0000 (-0700) Subject: net/http: don't test for goroutine leaks in short mode X-Git-Tag: go1.1rc2~469 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f98b8a00db9283930ee8f00046e9d87c673b0dca;p=gostls13.git net/http: don't test for goroutine leaks in short mode Too annoying and flaky to debug for now. Later. This tangent has taken enough time. R=golang-dev, r CC=golang-dev https://golang.org/cl/7863043 --- diff --git a/src/pkg/net/http/z_last_test.go b/src/pkg/net/http/z_last_test.go index c000c537e4..a80fb01d0a 100644 --- a/src/pkg/net/http/z_last_test.go +++ b/src/pkg/net/http/z_last_test.go @@ -39,6 +39,9 @@ func interestingGoroutines() (gs []string) { // Verify the other tests didn't leave any goroutines running. // This is in a file named z_last_test.go so it sorts at the end. func TestGoroutinesRunning(t *testing.T) { + if testing.Short() { + t.Skip("not counting goroutines for leakage in -short mode") + } gs := interestingGoroutines() n := 0