From a952a707ef132c1958681ad7bf58fe69a8a0800d Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Fri, 8 Nov 2024 15:41:14 +0800 Subject: [PATCH] itest: optimize blocks mined in `testGarbageCollectLinkNodes` There's no need to mine 80ish blocks here. --- itest/lnd_misc_test.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/itest/lnd_misc_test.go b/itest/lnd_misc_test.go index f983b39e91d..30dba0a8782 100644 --- a/itest/lnd_misc_test.go +++ b/itest/lnd_misc_test.go @@ -10,7 +10,6 @@ import ( "github.com/btcsuite/btcd/txscript" "github.com/btcsuite/btcd/wire" "github.com/btcsuite/btcwallet/wallet" - "github.com/lightningnetwork/lnd/chainreg" "github.com/lightningnetwork/lnd/funding" "github.com/lightningnetwork/lnd/input" "github.com/lightningnetwork/lnd/lncfg" @@ -506,12 +505,6 @@ func testGarbageCollectLinkNodes(ht *lntest.HarnessTest) { // close the channel instead. ht.ForceCloseChannel(alice, forceCloseChanPoint) - // We'll need to mine some blocks in order to mark the channel fully - // closed. - ht.MineBlocks( - chainreg.DefaultBitcoinTimeLockDelta - defaultCSV, - ) - // Before we test reconnection, we'll ensure that the channel has been // fully cleaned up for both Carol and Alice. ht.AssertNumPendingForceClose(alice, 0)