Commit fe017550 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

os/signal: deflake test

Fixes #4987.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7713043
parent f0396caf
......@@ -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)
}
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