diff options
| author | Bryan C. Mills <bcmills@google.com> | 2022-09-14 14:21:23 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-09-16 21:13:59 +0000 |
| commit | a9ca741d311772efb828c4b4f45e737783a89ca3 (patch) | |
| tree | e13a45503e8e94bf9432b8c56944d2a38d1aa612 /src/runtime | |
| parent | 2addbf3f2a91e2caa0903c79a44d722e9bcd913d (diff) | |
| download | go-a9ca741d311772efb828c4b4f45e737783a89ca3.tar.xz | |
net/http: deflake TestServerCancelsReadHeaderTimeoutWhenIdle
Return errors instead of calling t.Fatalf for timing-sensitive failure
modes. Scale the Sleep call to the timeout (so that it isn't too short
for the longer durations).
Fixes #54891.
Change-Id: I574e85e121becdda9ab8ee6bfd37c18a549d366d
Reviewed-on: https://go-review.googlesource.com/c/go/+/430955
Reviewed-by: Joel Sing <joel@sing.id.au>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions
