From 563a5caed5ed79dbf5e5600ce994e495724b5b66 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Mon, 8 Apr 2024 18:19:14 +0800 Subject: [PATCH] itest: fix watchtower test --- itest/lnd_watchtower_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/itest/lnd_watchtower_test.go b/itest/lnd_watchtower_test.go index af44f7b0f..c64b1e43a 100644 --- a/itest/lnd_watchtower_test.go +++ b/itest/lnd_watchtower_test.go @@ -579,15 +579,14 @@ func testRevokedCloseRetributionAltruistWatchtowerCase(ht *lntest.HarnessTest, ht.AssertNumPendingForceClose(dave, 0) - // If this is an anchor channel, Dave would sweep the anchor. + // If this is an anchor channel, Dave would offer his sweeper the + // anchor. However, due to no time-sensitive outputs involved, the + // anchor sweeping won't happen as it's uneconomical. if lntest.CommitTypeHasAnchors(commitType) { ht.AssertNumPendingSweeps(dave, 1) // Mine a block to trigger the sweep. - ht.MineBlocks(1) - - // Mine a block to confirm the sweep. - ht.MineBlocksAndAssertNumTxes(1, 1) + ht.MineEmptyBlocks(1) } // Check that Dave's wallet balance is increased.