Browse Source

harness: remove killed nodes from active nodes

master
Andras Banki-Horvath 3 years ago
parent
commit
7ce3223919
No known key found for this signature in database
GPG Key ID: 80E5375C094198D8
  1. 7
      lntest/harness.go

7
lntest/harness.go

@ -823,7 +823,12 @@ func (n *NetworkHarness) ShutdownNode(node *HarnessNode) error {
// KillNode kills the node (but won't wait for the node process to stop).
func (n *NetworkHarness) KillNode(node *HarnessNode) error {
return node.kill()
if err := node.kill(); err != nil {
return err
}
delete(n.activeNodes, node.NodeID)
return nil
}
// StopNode stops the target node, but doesn't yet clean up its directories.

Loading…
Cancel
Save