diff options
author | Shuhei Takahashi <nya@chromium.org> | 2021-03-22 13:35:49 +0900 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-03-22 18:41:13 +0000 |
commit | ba6b8e75ed16b3e9ecb305399e5ec2e29778e299 (patch) | |
tree | 9894f7ca06c0db7401bbcf2be67aaaceb315c377 /src/os/exec/exec_test.go | |
parent | 78afca22c9485dbd44da3b909866bbb9c1eaf440 (diff) | |
download | go-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.go | 2 |
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) |