1
0
mirror of https://github.com/golang/go synced 2024-09-24 05:10:13 -06:00

os/exec: avoid flaky Wait in TestContextCancel

This change just increases the timeout to 1 minute to avoid test
flakiness.

Fixes #42061

Change-Id: Id258488ee8f062cd5e68b68bb5cf11e15fdbb396
Reviewed-on: https://go-review.googlesource.com/c/go/+/303351
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Benny Siegert <bsiegert@gmail.com>
This commit is contained in:
Shuhei Takahashi 2021-03-22 13:35:49 +09:00 committed by Ian Lance Taylor
parent 78afca22c9
commit ba6b8e75ed

View File

@ -1099,7 +1099,7 @@ func TestContextCancel(t *testing.T) {
if _, err := io.WriteString(w, "echo"); err != nil {
break
}
if time.Since(start) > time.Second {
if time.Since(start) > time.Minute {
t.Fatal("canceling context did not stop program")
}
time.Sleep(time.Millisecond)