Commit c1e33202 authored by Russ Cox's avatar Russ Cox

os/signal: increase timeout from 10ms to 100ms

Might make test less flaky.
Fixes #8682.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/143160043
parent 95c899f0
......@@ -125,7 +125,7 @@ func TestStop(t *testing.T) {
if sig != syscall.SIGHUP || *sendUncaughtSighup == 1 {
syscall.Kill(syscall.Getpid(), sig)
}
time.Sleep(10 * time.Millisecond)
time.Sleep(100 * time.Millisecond)
// Ask for signal
c := make(chan os.Signal, 1)
......@@ -140,7 +140,7 @@ func TestStop(t *testing.T) {
select {
case s := <-c:
t.Fatalf("unexpected signal %v", s)
case <-time.After(10 * time.Millisecond):
case <-time.After(100 * time.Millisecond):
// nothing to read - good
}
......@@ -154,7 +154,7 @@ func TestStop(t *testing.T) {
select {
case s := <-c:
t.Fatalf("unexpected signal %v", s)
case <-time.After(10 * time.Millisecond):
case <-time.After(100 * time.Millisecond):
// nothing to read - good
}
}
......
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