os/signal: deflake test

Fixes #4987.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7713043
This commit is contained in:
Dmitriy Vyukov 2013-03-11 22:31:34 +04:00
parent f0396caf12
commit fe017550ac

View file

@ -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)
}