Skip to content

Commit

Permalink
Revert if check on killing process exec proc cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <me@joshvanl.dev>
  • Loading branch information
JoshVanL committed Dec 5, 2023
1 parent 4396bf2 commit 822824e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/integration/framework/process/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ func (e *exec) checkExit(t *testing.T) {
t.Logf("waiting for %q process to exit", filepath.Base(e.binPath))

e.runErrorFn(t, e.cmd.Wait())
if e.cmd.ProcessState != nil {
assert.Equalf(t, e.exitCode, e.cmd.ProcessState.ExitCode(), "expected exit code to be %d", e.exitCode)
}
require.NotNil(t, e.cmd.ProcessState, "process state should not be nil")
assert.Equalf(t, e.exitCode, e.cmd.ProcessState.ExitCode(), "expected exit code to be %d", e.exitCode)
}

0 comments on commit 822824e

Please sign in to comment.