test: shutdown server properly

This commit is contained in:
Frank Schroeder 2017-05-19 10:49:46 +02:00
parent eded493206
commit 1d5b56eec1
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ func (s *TestServer) Stop() error {
}
if s.cmd.Process != nil {
if err := s.cmd.Process.Kill(); err != nil {
if err := s.cmd.Process.Signal(os.Interrupt); err != nil {
return errors.Wrap(err, "failed to kill consul server")
}
}