mirror of https://github.com/hashicorp/consul
testutil: error instead of panic
parent
a0e3b10a19
commit
b48e4a21f6
|
@ -215,7 +215,7 @@ func (s *TestServer) Stop() {
|
||||||
|
|
||||||
cmd := exec.Command("kill", "-9", fmt.Sprintf("%d", s.PID))
|
cmd := exec.Command("kill", "-9", fmt.Sprintf("%d", s.PID))
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
panic(err)
|
s.t.Errorf("err: %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue