]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: deflake TestCancelRequestWithChannelBeforeDo_Cancel
authorConstantin Konstantinidis <constantinkonstantinidis@gmail.com>
Fri, 1 Nov 2019 14:46:47 +0000 (15:46 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 2 Nov 2019 03:00:20 +0000 (03:00 +0000)
Goroutines clean up takes longer when using deprecated CloseNotifier.

Fixes #35122

Change-Id: Id820a3012b5c781ddfb294b38ee3b009624e398c
Reviewed-on: https://go-review.googlesource.com/c/go/+/204661
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/main_test.go
src/net/http/transport_test.go

index 7936fb3044e65d7a77962b34b72d86e6a82c594e..85aa9096c31ceaac739f1c1bd220f6c2d085f756 100644 (file)
@@ -122,7 +122,7 @@ func afterTest(t testing.TB) {
                ").noteClientGone(":     "a closenotifier sender",
        }
        var stacks string
-       for i := 0; i < 4; i++ {
+       for i := 0; i < 10; i++ {
                bad = ""
                stacks = strings.Join(interestingGoroutines(), "\n\n")
                for substr, what := range badSubstring {
index 0d63e46d4f9a412897c775fbd2bbe750fd7a5d8c..00d6b2608b8b15bb6eabca3f96cf1afa59ae469e 100644 (file)
@@ -22,7 +22,6 @@ import (
        "fmt"
        "go/token"
        "internal/nettrace"
-       "internal/testenv"
        "io"
        "io/ioutil"
        "log"
@@ -2355,9 +2354,6 @@ func TestCancelRequestWithChannel(t *testing.T) {
 }
 
 func TestCancelRequestWithChannelBeforeDo_Cancel(t *testing.T) {
-       if os.Getenv("GO_BUILDER_NAME") == "windows-amd64-longtest" {
-               testenv.SkipFlaky(t, 35122)
-       }
        testCancelRequestWithChannelBeforeDo(t, false)
 }
 func TestCancelRequestWithChannelBeforeDo_Context(t *testing.T) {