itest: update num of sweeps in AssertNumPendingSweeps

Since we now return all sweeps, we need to update the call to include
immature sweeps.
This commit is contained in:
yyforyongyu
2025-04-28 15:43:19 +08:00
parent d991f5659a
commit 8f936aa9eb
8 changed files with 201 additions and 91 deletions

View File

@@ -309,8 +309,9 @@ func testHtlcTimeoutResolverExtractPreimageLocal(ht *lntest.HarnessTest) {
// Once Bob's force closing tx is confirmed, he will re-offer the
// anchor output to his sweeper, which won't be swept due to it being
// uneconomical.
ht.AssertNumPendingSweeps(bob, 1)
// uneconomical. In addition, the to_local output should also be found
// although it's immature.
ht.AssertNumPendingSweeps(bob, 2)
// Mine 3 blocks so the output will be offered to the sweeper.
ht.MineBlocks(defaultCSV - 1)