From 7ce3223919236954aa37e99fdef421bc571cf6f1 Mon Sep 17 00:00:00 2001 From: Andras Banki-Horvath Date: Thu, 15 Jul 2021 11:26:27 +0200 Subject: [PATCH] harness: remove killed nodes from active nodes --- lntest/harness.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lntest/harness.go b/lntest/harness.go index d9aff075..ae31ccf0 100644 --- a/lntest/harness.go +++ b/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.