Commit a6ca6d9
[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 <[email protected]>
Run-TryBot: Damien Neil <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Heschi Kreinick <[email protected]>
(cherry picked from commit 6e73886)
Reviewed-on: https://go-review.googlesource.com/c/go/+/3398301 parent 16ab7e4 commit a6ca6d9
1 file changed
+51
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6433 | 6433 | | |
6434 | 6434 | | |
6435 | 6435 | | |
6436 | | - | |
6437 | | - | |
6438 | | - | |
| 6436 | + | |
6439 | 6437 | | |
| 6438 | + | |
| 6439 | + | |
| 6440 | + | |
6440 | 6441 | | |
6441 | 6442 | | |
6442 | 6443 | | |
| |||
6448 | 6449 | | |
6449 | 6450 | | |
6450 | 6451 | | |
6451 | | - | |
| 6452 | + | |
| 6453 | + | |
| 6454 | + | |
| 6455 | + | |
| 6456 | + | |
| 6457 | + | |
| 6458 | + | |
| 6459 | + | |
| 6460 | + | |
| 6461 | + | |
| 6462 | + | |
| 6463 | + | |
| 6464 | + | |
| 6465 | + | |
| 6466 | + | |
| 6467 | + | |
| 6468 | + | |
| 6469 | + | |
| 6470 | + | |
| 6471 | + | |
| 6472 | + | |
| 6473 | + | |
6452 | 6474 | | |
6453 | | - | |
6454 | | - | |
6455 | | - | |
6456 | | - | |
6457 | | - | |
6458 | | - | |
6459 | | - | |
6460 | | - | |
6461 | | - | |
6462 | | - | |
6463 | | - | |
6464 | | - | |
6465 | | - | |
6466 | | - | |
6467 | | - | |
| 6475 | + | |
| 6476 | + | |
| 6477 | + | |
| 6478 | + | |
| 6479 | + | |
6468 | 6480 | | |
6469 | | - | |
6470 | | - | |
6471 | | - | |
6472 | | - | |
6473 | | - | |
6474 | | - | |
| 6481 | + | |
| 6482 | + | |
| 6483 | + | |
| 6484 | + | |
| 6485 | + | |
| 6486 | + | |
| 6487 | + | |
6475 | 6488 | | |
6476 | 6489 | | |
6477 | | - | |
| 6490 | + | |
| 6491 | + | |
| 6492 | + | |
| 6493 | + | |
6478 | 6494 | | |
| 6495 | + | |
| 6496 | + | |
| 6497 | + | |
6479 | 6498 | | |
| 6499 | + | |
| 6500 | + | |
| 6501 | + | |
| 6502 | + | |
| 6503 | + | |
| 6504 | + | |
6480 | 6505 | | |
6481 | 6506 | | |
0 commit comments