-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Commit 6e73886
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>1 parent 8a7ee4c commit 6e73886
1 file changed
+51
-26
lines changedLines changed: 51 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6441 | 6441 |
| |
6442 | 6442 |
| |
6443 | 6443 |
| |
6444 | - | ||
6445 | - | ||
6446 | - | ||
6444 | + | ||
6447 | 6445 |
| |
6446 | + | ||
6447 | + | ||
6448 | + | ||
6448 | 6449 |
| |
6449 | 6450 |
| |
6450 | 6451 |
| |
| |||
6456 | 6457 |
| |
6457 | 6458 |
| |
6458 | 6459 |
| |
6459 | - | ||
6460 | + | ||
6461 | + | ||
6462 | + | ||
6463 | + | ||
6464 | + | ||
6465 | + | ||
6466 | + | ||
6467 | + | ||
6468 | + | ||
6469 | + | ||
6470 | + | ||
6471 | + | ||
6472 | + | ||
6473 | + | ||
6474 | + | ||
6475 | + | ||
6476 | + | ||
6477 | + | ||
6478 | + | ||
6479 | + | ||
6480 | + | ||
6481 | + | ||
6460 | 6482 |
| |
6461 | - | ||
6462 | - | ||
6463 | - | ||
6464 | - | ||
6465 | - | ||
6466 | - | ||
6467 | - | ||
6468 | - | ||
6469 | - | ||
6470 | - | ||
6471 | - | ||
6472 | - | ||
6473 | - | ||
6474 | - | ||
6475 | - | ||
6483 | + | ||
6484 | + | ||
6485 | + | ||
6486 | + | ||
6487 | + | ||
6476 | 6488 |
| |
6477 | - | ||
6478 | - | ||
6479 | - | ||
6480 | - | ||
6481 | - | ||
6482 | - | ||
6489 | + | ||
6490 | + | ||
6491 | + | ||
6492 | + | ||
6493 | + | ||
6494 | + | ||
6495 | + | ||
6483 | 6496 |
| |
6484 | 6497 |
| |
6485 | - | ||
6498 | + | ||
6499 | + | ||
6500 | + | ||
6501 | + | ||
6486 | 6502 |
| |
6503 | + | ||
6504 | + | ||
6505 | + | ||
6487 | 6506 |
| |
6507 | + | ||
6508 | + | ||
6509 | + | ||
6510 | + | ||
6511 | + | ||
6512 | + | ||
6488 | 6513 |
| |
6489 | 6514 |
|
0 commit comments