mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -1099,7 +1099,7 @@ func TestContextCancel(t *testing.T) {
|
||||||
if _, err := io.WriteString(w, "echo"); err != nil {
|
if _, err := io.WriteString(w, "echo"); err != nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if time.Since(start) > time.Second {
|
if time.Since(start) > time.Minute {
|
||||||
t.Fatal("canceling context did not stop program")
|
t.Fatal("canceling context did not stop program")
|
||||||
}
|
}
|
||||||
time.Sleep(time.Millisecond)
|
time.Sleep(time.Millisecond)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue