Skip to content

Commit 1c4611b

Browse files
rscwheatman
authored andcommitted
os/signal: increase timeout from 10ms to 100ms
Might make test less flaky. Fixes golang#8682. LGTM=bradfitz R=bradfitz CC=golang-codereviews https://golang.org/cl/143160043
1 parent 8ef92da commit 1c4611b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/os/signal/signal_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func TestStop(t *testing.T) {
125125
if sig != syscall.SIGHUP || *sendUncaughtSighup == 1 {
126126
syscall.Kill(syscall.Getpid(), sig)
127127
}
128-
time.Sleep(10 * time.Millisecond)
128+
time.Sleep(100 * time.Millisecond)
129129

130130
// Ask for signal
131131
c := make(chan os.Signal, 1)
@@ -140,7 +140,7 @@ func TestStop(t *testing.T) {
140140
select {
141141
case s := <-c:
142142
t.Fatalf("unexpected signal %v", s)
143-
case <-time.After(10 * time.Millisecond):
143+
case <-time.After(100 * time.Millisecond):
144144
// nothing to read - good
145145
}
146146

@@ -154,7 +154,7 @@ func TestStop(t *testing.T) {
154154
select {
155155
case s := <-c:
156156
t.Fatalf("unexpected signal %v", s)
157-
case <-time.After(10 * time.Millisecond):
157+
case <-time.After(100 * time.Millisecond):
158158
// nothing to read - good
159159
}
160160
}

0 commit comments

Comments
 (0)