From 5d8aaa94f1604180ae8305fc70527b8ae7906cb0 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 7 Jun 2018 23:22:22 +0200 Subject: [PATCH] lnd_test: add missing node shutdowns --- lnd_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lnd_test.go b/lnd_test.go index 052fe5de..d20a0ee0 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -1673,6 +1673,7 @@ func testChannelForceClosure(net *lntest.NetworkHarness, t *harnessTest) { if err != nil { t.Fatalf("unable to create new nodes: %v", err) } + defer shutdownAndAssert(net, t, carol) // We must let Alice have an open channel before she can send a node // announcement, so we open a channel with Carol, @@ -4933,6 +4934,7 @@ func testRevokedCloseRetributionZeroValueRemoteOutput(net *lntest.NetworkHarness if err != nil { t.Fatalf("unable to create new nodes: %v", err) } + defer shutdownAndAssert(net, t, carol) // We must let Alice have an open channel before she can send a node // announcement, so we open a channel with Carol, @@ -5167,6 +5169,7 @@ func testRevokedCloseRetributionRemoteHodl(net *lntest.NetworkHarness, if err != nil { t.Fatalf("unable to create new nodes: %v", err) } + defer shutdownAndAssert(net, t, carol) // We'll also create a new node Dave, who will have a channel with // Carol, and also use similar settings so we can broadcast a commit @@ -5175,6 +5178,7 @@ func testRevokedCloseRetributionRemoteHodl(net *lntest.NetworkHarness, if err != nil { t.Fatalf("unable to create new dave node: %v", err) } + defer shutdownAndAssert(net, t, dave) // We must let Dave communicate with Carol before they are able to open // channel, so we connect Dave and Carol,