diff --git a/ssh/test/test_unix_test.go b/ssh/test/test_unix_test.go index c303881..63d290f 100644 --- a/ssh/test/test_unix_test.go +++ b/ssh/test/test_unix_test.go @@ -130,6 +130,7 @@ func (s *server) Shutdown() { if err := s.cmd.Process.Kill(); err != nil { s.t.Error(err) } + s.cmd.Wait() } if s.t.Failed() { // log any output from sshd process