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:
parent
eded493206
commit
1d5b56eec1
@ -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")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user