mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user