From: Constantin Konstantinidis Date: Fri, 1 Nov 2019 14:46:47 +0000 (+0100) Subject: [release-branch.go1.13] net/http: deflake TestCancelRequestWithChannelBeforeDo_Cancel X-Git-Tag: go1.13.10~8 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7261619113b1f35fc9260a44b66bc1f9a13f142f;p=gostls13.git [release-branch.go1.13] net/http: deflake TestCancelRequestWithChannelBeforeDo_Cancel 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 Reviewed-by: Brad Fitzpatrick (cherry picked from commit 1e4a358454987ef5104e45081c8e2ecdc9f32513) Reviewed-on: https://go-review.googlesource.com/c/go/+/223699 Run-TryBot: Alexander Rakoczy Reviewed-by: Alexander Rakoczy --- diff --git a/src/net/http/main_test.go b/src/net/http/main_test.go index 7936fb3044..85aa9096c3 100644 --- a/src/net/http/main_test.go +++ b/src/net/http/main_test.go @@ -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 {