mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01:00
Merge pull request #3487 from matheusd/lnd-fix-extra-dave
itest: Shutdown final Dave node in testChanRestore
This commit is contained in:
commit
01f696afce
1 changed files with 5 additions and 1 deletions
|
@ -13413,7 +13413,11 @@ func testChanRestoreScenario(t *harnessTest, net *lntest.NetworkHarness,
|
|||
if err != nil {
|
||||
t.Fatalf("unable to create new node: %v", err)
|
||||
}
|
||||
defer shutdownAndAssert(net, t, dave)
|
||||
// Defer to a closure instead of to shutdownAndAssert due to the value
|
||||
// of 'dave' changing throughout the test.
|
||||
defer func() {
|
||||
shutdownAndAssert(net, t, dave)
|
||||
}()
|
||||
carol, err := net.NewNode("carol", nil)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to make new node: %v", err)
|
||||
|
|
Loading…
Add table
Reference in a new issue