mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 23:21:12 +02:00
lntest: skip killing dead process
This commit is contained in:
@@ -732,7 +732,14 @@ func (hn *HarnessNode) Stop() error {
|
|||||||
// manually.
|
// manually.
|
||||||
hn.printErrf("found nil RPC clients")
|
hn.printErrf("found nil RPC clients")
|
||||||
if err := hn.Kill(); err != nil {
|
if err := hn.Kill(); err != nil {
|
||||||
return fmt.Errorf("killing process got: %v", err)
|
// Skip the error if the process is already dead.
|
||||||
|
if !strings.Contains(
|
||||||
|
err.Error(), "process already finished",
|
||||||
|
) {
|
||||||
|
|
||||||
|
return fmt.Errorf("killing process got: %w",
|
||||||
|
err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user