]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.16] 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:46:57 +0000 (16:46 +0000)
commita6ca6d90b3ca1f0a9fab6cde41079176c1d2094c
tree85164c982acb376f3c47061405f67979b0578295
parent16ab7e49d4070c4f68e88836b123dbe6da8bb015
[release-branch.go1.16] 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 #47535.
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/+/339830
src/net/http/transport_test.go