]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.15] net/http: speed up and deflake TestCancelRequestWhenSharingCo...
authorDamien Neil <dneil@google.com>
Wed, 4 Aug 2021 02:38:37 +0000 (19:38 -0700)
committerHeschi Kreinick <heschi@google.com>
Wed, 4 Aug 2021 16:42:14 +0000 (16:42 +0000)
commite90f40284eb02236b9efcfd6e8eec51082f4dd8b
treed8be669720b5de1cf0e4d2099c0f02d007e449b6
parent7921829a57360185500fa8f1be69b9b7a0700009
[release-branch.go1.15] net/http: speed up and deflake TestCancelRequestWhenSharingConnection

This test made many requests over the same connection for 10
seconds, trusting that this will exercise the request cancelation
race from #41600.

Change the test to exhibit the specific race in a targeted fashion
with only two requests.

Fixes #47534.
Updates #41600.
Updates #47016.

Change-Id: If99c9b9331ff645f6bb67fe9fb79b8aab8784710
Reviewed-on: https://go-review.googlesource.com/c/go/+/339594
Trust: Damien Neil <dneil@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
(cherry picked from commit 6e738868a7a943d7d4fd6bb1963e7f6d78111726)
Reviewed-on: https://go-review.googlesource.com/c/go/+/339829
src/net/http/transport_test.go