]> Cypherpunks repositories - gostls13.git/commit
net/http: speed up and deflake TestCancelRequestWhenSharingConnection
authorDamien Neil <dneil@google.com>
Wed, 4 Aug 2021 02:38:37 +0000 (19:38 -0700)
committerDamien Neil <dneil@google.com>
Wed, 4 Aug 2021 15:26:45 +0000 (15:26 +0000)
commit6e738868a7a943d7d4fd6bb1963e7f6d78111726
treeecc89b8dd672b2d44080a025a237ec13c42fda54
parent8a7ee4c51e992174d432ce0f40d9387a32d6ee4a
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.

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>
src/net/http/transport_test.go