From a080375b7df715038b789d866f711645ef5b531c Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Fri, 21 Oct 2022 18:19:25 +0800 Subject: [PATCH] itest: remove unnecessary shutdown --- itest/lnd_onchain_test.go | 3 --- itest/lnd_psbt_test.go | 3 --- itest/lnd_res_handoff_test.go | 1 - 3 files changed, 7 deletions(-) diff --git a/itest/lnd_onchain_test.go b/itest/lnd_onchain_test.go index a95b2f325..dbc01690e 100644 --- a/itest/lnd_onchain_test.go +++ b/itest/lnd_onchain_test.go @@ -355,10 +355,7 @@ func testAnchorThirdPartySpend(ht *lntest.HarnessTest) { // lnd binary. args := lntest.NodeArgsForCommitType(lnrpc.CommitmentType_ANCHORS) alice := ht.NewNode("Alice", args) - defer ht.Shutdown(alice) - bob := ht.NewNode("Bob", args) - defer ht.Shutdown(bob) ht.EnsureConnected(alice, bob) diff --git a/itest/lnd_psbt_test.go b/itest/lnd_psbt_test.go index d2673f86e..80fe55189 100644 --- a/itest/lnd_psbt_test.go +++ b/itest/lnd_psbt_test.go @@ -421,10 +421,7 @@ func testPsbtChanFundingSingleStep(ht *lntest.HarnessTest) { // between for this test. But in this case both nodes have an empty // wallet. carol := ht.NewNode("carol", args) - defer ht.Shutdown(carol) - dave := ht.NewNode("dave", args) - defer ht.Shutdown(dave) alice := ht.Alice ht.FundCoins(btcutil.SatoshiPerBitcoin, alice) diff --git a/itest/lnd_res_handoff_test.go b/itest/lnd_res_handoff_test.go index e6c10b48f..0a85cd77d 100644 --- a/itest/lnd_res_handoff_test.go +++ b/itest/lnd_res_handoff_test.go @@ -29,7 +29,6 @@ func testResHandoff(ht *lntest.HarnessTest) { // trigger the behavior of checkRemoteDanglingActions in the // contractcourt. This will cause Bob to fail the HTLC back to Alice. carol := ht.NewNode("Carol", []string{"--hodl.commit"}) - defer ht.Shutdown(carol) // Connect Bob to Carol. ht.ConnectNodes(bob, carol)