Commit 5dc144c6 authored by Lynn Boger's avatar Lynn Boger

os/signal: increase wait time for signal delivery time in testcase

This increases the time to wait from 1 to 2 seconds in the
TestAtomicStop testcase. When running with gccgo on ppc64
& ppc64le on a loaded systems these testcases can
intermittently fail with the current value.

Updates #29046

Change-Id: If420274dd65926d933a3024903b5c757c300bd60
Reviewed-on: https://go-review.googlesource.com/c/153826
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 944a9c7a
...@@ -432,12 +432,12 @@ func atomicStopTestProgram() { ...@@ -432,12 +432,12 @@ func atomicStopTestProgram() {
// At this point we should either die from SIGINT or // At this point we should either die from SIGINT or
// get a notification on cs. If neither happens, we // get a notification on cs. If neither happens, we
// dropped the signal. Give it a second to deliver, // dropped the signal. It is given 2 seconds to
// which is far far longer than it should require. // deliver, as needed for gccgo on some loaded test systems.
select { select {
case <-cs: case <-cs:
case <-time.After(1 * time.Second): case <-time.After(2 * time.Second):
if !printed { if !printed {
fmt.Print("lost signal on tries:") fmt.Print("lost signal on tries:")
printed = true printed = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment