aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec_test.go
diff options
context:
space:
mode:
authorShuhei Takahashi <nya@chromium.org>2021-03-22 13:35:49 +0900
committerIan Lance Taylor <iant@golang.org>2021-03-22 18:41:13 +0000
commitba6b8e75ed16b3e9ecb305399e5ec2e29778e299 (patch)
tree9894f7ca06c0db7401bbcf2be67aaaceb315c377 /src/os/exec/exec_test.go
parent78afca22c9485dbd44da3b909866bbb9c1eaf440 (diff)
downloadgo-ba6b8e75ed16b3e9ecb305399e5ec2e29778e299.tar.gz
go-ba6b8e75ed16b3e9ecb305399e5ec2e29778e299.zip
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>
Diffstat (limited to 'src/os/exec/exec_test.go')
-rw-r--r--src/os/exec/exec_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/exec/exec_test.go b/src/os/exec/exec_test.go
index 57591a38ab..05cf807583 100644
--- a/src/os/exec/exec_test.go
+++ b/src/os/exec/exec_test.go
@@ -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)