]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.13] net/http: deflake TestCancelRequestWithChannelBeforeDo_Cancel
authorConstantin Konstantinidis <constantinkonstantinidis@gmail.com>
Fri, 1 Nov 2019 14:46:47 +0000 (15:46 +0100)
committerDmitri Shuralyov <dmitshur@golang.org>
Tue, 31 Mar 2020 23:01:29 +0000 (23:01 +0000)
Goroutines clean up takes longer when using deprecated CloseNotifier.

For #35122.
Fixes #37892.

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>
(cherry picked from commit 1e4a358454987ef5104e45081c8e2ecdc9f32513)
Reviewed-on: https://go-review.googlesource.com/c/go/+/223699
Run-TryBot: Alexander Rakoczy <alex@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
src/net/http/main_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 {