Skip to content

Commit 8259e0f

Browse files
committed
itest: remove redundant call to ht.WaitForBlockchainSync
This check has already been done when mining blocks.
1 parent 3e36adf commit 8259e0f

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

itest/lnd_hold_invoice_force_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ func testHoldInvoiceForceClose(ht *lntest.HarnessTest) {
9595
// We first mine enough blocks to trigger an invoice cancelation.
9696
ht.MineBlocks(int(blocksTillCancel))
9797

98-
// Wait for the nodes to be synced.
99-
ht.WaitForBlockchainSync(alice)
100-
ht.WaitForBlockchainSync(bob)
101-
10298
// Check that the invoice is canceled by Bob.
10399
err := wait.NoError(func() error {
104100
inv := bob.RPC.LookupInvoice(payHash[:])
@@ -135,10 +131,6 @@ func testHoldInvoiceForceClose(ht *lntest.HarnessTest) {
135131
// invoice cancelation message was received by Alice.
136132
ht.MineBlocks(int(blocksTillForce - blocksTillCancel))
137133

138-
// Wait for the nodes to be synced.
139-
ht.WaitForBlockchainSync(alice)
140-
ht.WaitForBlockchainSync(bob)
141-
142134
// Check that Alice has not closed the channel because there are no
143135
// outgoing HTLCs in her channel as the only HTLC has already been
144136
// canceled.

itest/lnd_psbt_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,6 @@ func sendAllCoinsToAddrType(ht *lntest.HarnessTest,
15781578
})
15791579

15801580
ht.MineBlocksAndAssertNumTxes(1, 1)
1581-
ht.WaitForBlockchainSync(hn)
15821581
}
15831582

15841583
// testPsbtChanFundingFailFlow tests the failing of a funding flow by the

itest/lnd_route_blinding_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -852,10 +852,6 @@ func testErrorHandlingOnChainFailure(ht *lntest.HarnessTest) {
852852
ht.AssertNumPendingSweeps(ht.Bob, 0)
853853
ht.MineBlocksAndAssertNumTxes(1, 1)
854854

855-
// Assert that the HTLC has cleared.
856-
ht.WaitForBlockchainSync(ht.Bob)
857-
ht.WaitForBlockchainSync(ht.Alice)
858-
859855
ht.AssertHTLCNotActive(ht.Bob, testCase.channels[0], hash[:])
860856
ht.AssertHTLCNotActive(ht.Alice, testCase.channels[0], hash[:])
861857

0 commit comments

Comments
 (0)