]> Cypherpunks repositories - gostls13.git/commit
os/signal: use a larger channel buffer for all signals in TestSignal
authorIan Lance Taylor <iant@golang.org>
Fri, 8 Nov 2019 23:28:51 +0000 (15:28 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 9 Nov 2019 00:36:15 +0000 (00:36 +0000)
commitbde1968e4c1d0d43d1d558a364eb427ef2143c42
tree2d0982fe3299a9e43149b4d2b7eddfba621c53fe
parent11da2b227a71c9c041320e22843047ad9b0ab1a8
os/signal: use a larger channel buffer for all signals in TestSignal

Now that the runtime can send preemption signals, it is possible that
a channel that asks for all signals can see both SIGURG and SIGHUP
before reading either, in which case one of the signals will be dropped.
We have to use a larger buffer so that the test see the signal it expects.

Fixes #35466

Change-Id: I36271eae0661c421780c72292a5bcbd443ada987
Reviewed-on: https://go-review.googlesource.com/c/go/+/206257
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/os/signal/signal_test.go