2
0
mirror of https://github.com/status-im/consul.git synced 2025-01-12 23:05:28 +00:00

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

@ -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")
}
}