Commit abee42a
committed
http2: deflake TestTransportReuseAfterError
This test issues a request with a short timeout, and expects that
the request timing out will result in the connection it was sent
on being marked as unusable.
However, it is possible for the request to time out before it is
sent, with no effect on the connection. The test's next request
then uses the same connection and hangs.
Rather than a timeout, cancel the request after it is received
on the server.
Fixes golang/go#59934
Change-Id: I1144686377158d0654e0f91a1b0312021a02a01d
Reviewed-on: https://go-review.googlesource.com/c/net/+/496055
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Damien Neil <dneil@google.com>1 parent 3b31286 commit abee42a
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6434 | 6434 | | |
6435 | 6435 | | |
6436 | 6436 | | |
6437 | | - | |
| 6437 | + | |
6438 | 6438 | | |
6439 | | - | |
6440 | | - | |
6441 | | - | |
| 6439 | + | |
| 6440 | + | |
| 6441 | + | |
| 6442 | + | |
| 6443 | + | |
| 6444 | + | |
6442 | 6445 | | |
6443 | | - | |
| 6446 | + | |
6444 | 6447 | | |
6445 | | - | |
6446 | 6448 | | |
6447 | 6449 | | |
6448 | 6450 | | |
| |||
0 commit comments