]> Cypherpunks repositories - gostls13.git/commit
os: eliminate arbitrary timeout in testClosewithBlockingRead
authorBryan C. Mills <bcmills@google.com>
Wed, 25 Jan 2023 16:53:03 +0000 (11:53 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 25 Jan 2023 20:45:53 +0000 (20:45 +0000)
commit6e82febaf0ca737e82cc3f53de7245101821821c
tree6d9220ad6eba4dd0b6aac9885a366d93db02dd07
parent1f29f39795e736238200840c368c4e0c6edbfbae
os: eliminate arbitrary timeout in testClosewithBlockingRead

The 1-second timeout on execution of this test is empirically too
short on some platforms. Rather than trying to tune the timeout, allow
the test to time out on its own (and dump goroutines) if it deadlocks.

Fixes #57993.
Fixes #57994.

Change-Id: I69ee86c75034469e4b4cd391b8dc5616b93468b8
Reviewed-on: https://go-review.googlesource.com/c/go/+/463180
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
src/os/pipe_test.go