aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec_test.go
diff options
context:
space:
mode:
authorscott <scottwangsxll@gmail.com>2022-11-11 03:55:08 +0000
committerGopher Robot <gobot@golang.org>2022-11-11 21:43:46 +0000
commit7e4191e686c192b9c85065fd3b8775190d3e9c5f (patch)
tree8275bdcbde092fe5df72631862f9f08c72bc6248 /src/os/exec/exec_test.go
parentc3aac6c010f9293319ae5dbe0592bc7706b6a161 (diff)
downloadgo-7e4191e686c192b9c85065fd3b8775190d3e9c5f.tar.xz
os/exec: fix TestWaitInterrupt/WaitDelay error message
As the comments say. Here we expect err to be nil instead of ctx.Err() Change-Id: I4cd02d62ac0a13c9577a567de36742f13d140d36 GitHub-Last-Rev: 6bedfbc9d2511140d088dc9ee5f40015725f68db GitHub-Pull-Request: golang/go#56698 Reviewed-on: https://go-review.googlesource.com/c/go/+/449737 Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.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 cb1545a651..edff9a201e 100644
--- a/src/os/exec/exec_test.go
+++ b/src/os/exec/exec_test.go
@@ -1357,7 +1357,7 @@ func TestWaitInterrupt(t *testing.T) {
// context expired, a successful exit is valid (even if late) and does
// not merit a non-nil error.
if err != nil {
- t.Errorf("Wait: %v; want %v", err, ctx.Err())
+ t.Errorf("Wait: %v; want nil", err)
}
if ps := cmd.ProcessState; !ps.Exited() {
t.Errorf("cmd did not exit: %v", ps)