aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/testdata
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2022-09-14 14:21:23 -0400
committerGopher Robot <gobot@golang.org>2022-09-16 21:13:59 +0000
commita9ca741d311772efb828c4b4f45e737783a89ca3 (patch)
treee13a45503e8e94bf9432b8c56944d2a38d1aa612 /src/runtime/testdata
parent2addbf3f2a91e2caa0903c79a44d722e9bcd913d (diff)
downloadgo-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/testdata')
0 files changed, 0 insertions, 0 deletions