mirror of
https://github.com/golang/go
synced 2024-11-26 08:17:59 -07: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:
parent
78afca22c9
commit
ba6b8e75ed
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user