mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
os/signal: deflake test
Fixes #4987. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7713043
This commit is contained in:
parent
f0396caf12
commit
fe017550ac
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue