Skip to content

Commit 5dc144c

Browse files
committed
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 944a9c7 commit 5dc144c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/os/signal/signal_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,12 @@ func atomicStopTestProgram() {
432432

433433
// At this point we should either die from SIGINT or
434434
// get a notification on cs. If neither happens, we
435-
// dropped the signal. Give it a second to deliver,
436-
// which is far far longer than it should require.
435+
// dropped the signal. It is given 2 seconds to
436+
// deliver, as needed for gccgo on some loaded test systems.
437437

438438
select {
439439
case <-cs:
440-
case <-time.After(1 * time.Second):
440+
case <-time.After(2 * time.Second):
441441
if !printed {
442442
fmt.Print("lost signal on tries:")
443443
printed = true

0 commit comments

Comments
 (0)