mirror of
https://github.com/golang/go
synced 2024-11-23 18:40:03 -07:00
os/exec: fix TestWaitInterrupt/WaitDelay error message
As the comments say. Here we expect err to be nil instead of ctx.Err()
This commit is contained in:
parent
d62f8d5f2b
commit
6bedfbc9d2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user