]> Cypherpunks repositories - gostls13.git/commit
os: deflake TestPipeEOF and TestFifoEOF
authorBryan C. Mills <bcmills@google.com>
Tue, 13 Dec 2022 19:19:59 +0000 (14:19 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 19 Jan 2023 20:45:34 +0000 (20:45 +0000)
commitf2884bf42317011371440d90805e63248d94c45d
tree26a929ec5f321fcce33b8c307ac49df9235f38b7
parent3bb8864e9f5d4505c792528c9460fced4c0e7346
os: deflake TestPipeEOF and TestFifoEOF

- Consolidate the two test bodies as one helper function.
- Eliminate arbitrary timeout.
- Shorten arbitrary sleeps in short mode.
- Simplify goroutines.
- Mark the tests as parallel.

Fixes #36107.
Updates #24164.

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