Skip to content

Commit

Permalink
Don't wrap cmd.Wait
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola committed May 5, 2023
1 parent cb77990 commit 63997c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,7 @@ func K3sStopServer(server *K3sServer) error {
if err := server.cmd.Process.Signal(syscall.SIGTERM); err != nil {
return errors.Wrap(err, "failed to kill k3s process")
}
if err := server.cmd.Wait(); err != nil {
return errors.Wrap(err, "failed to wait for k3s process exit")
}
return nil
return server.cmd.Wait()
}

// K3sKillServer terminates the running K3s server and its children.
Expand Down

0 comments on commit 63997c7

Please sign in to comment.