]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: don't test for goroutine leaks in short mode
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 15 Mar 2013 23:50:54 +0000 (16:50 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 15 Mar 2013 23:50:54 +0000 (16:50 -0700)
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

src/pkg/net/http/z_last_test.go

index c000c537e48fc5eef7e36a6e641921faac484c0a..a80fb01d0a56fee3372f8f8433dc68c2b9898460 100644 (file)
@@ -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