From: Dmitriy Vyukov Date: Mon, 11 Mar 2013 18:31:34 +0000 (+0400) Subject: os/signal: deflake test X-Git-Tag: go1.1rc2~591 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fe017550ac3429d2fb0d808f581e7f7247a79767;p=gostls13.git os/signal: deflake test Fixes #4987. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7713043 --- diff --git a/src/pkg/os/signal/signal_test.go b/src/pkg/os/signal/signal_test.go index 509b273aa2..93e5ab9fad 100644 --- a/src/pkg/os/signal/signal_test.go +++ b/src/pkg/os/signal/signal_test.go @@ -98,4 +98,8 @@ func TestStress(t *testing.T) { close(done) <-finished <-finished + // When run with 'go test -cpu=1,2,4' SIGUSR1 from this test can slip + // into subsequent TestSignal() causing failure. + // Sleep for a while to reduce the possibility of the failure. + time.Sleep(10 * time.Millisecond) }