itest: remove redundant call to ht.WaitForBlockchainSync
This check has already been done when mining blocks.
This commit is contained in:
3 files changed
-13
No files matched your search
@@ -95,10 +95,6 @@ func testHoldInvoiceForceClose(ht *lntest.HarnessTest) {
|
|||||||
// We first mine enough blocks to trigger an invoice cancelation.
|
// We first mine enough blocks to trigger an invoice cancelation.
|
||||||
ht.MineBlocks(int(blocksTillCancel))
|
ht.MineBlocks(int(blocksTillCancel))
|
||||||
|
|
||||||
// Wait for the nodes to be synced.
|
|
||||||
ht.WaitForBlockchainSync(alice)
|
|
||||||
ht.WaitForBlockchainSync(bob)
|
|
||||||
|
|
||||||
// Check that the invoice is canceled by Bob.
|
// Check that the invoice is canceled by Bob.
|
||||||
err := wait.NoError(func() error {
|
err := wait.NoError(func() error {
|
||||||
inv := bob.RPC.LookupInvoice(payHash[:])
|
inv := bob.RPC.LookupInvoice(payHash[:])
|
||||||
@@ -135,10 +131,6 @@ func testHoldInvoiceForceClose(ht *lntest.HarnessTest) {
|
|||||||
// invoice cancelation message was received by Alice.
|
// invoice cancelation message was received by Alice.
|
||||||
ht.MineBlocks(int(blocksTillForce - blocksTillCancel))
|
ht.MineBlocks(int(blocksTillForce - blocksTillCancel))
|
||||||
|
|
||||||
// Wait for the nodes to be synced.
|
|
||||||
ht.WaitForBlockchainSync(alice)
|
|
||||||
ht.WaitForBlockchainSync(bob)
|
|
||||||
|
|
||||||
// Check that Alice has not closed the channel because there are no
|
// Check that Alice has not closed the channel because there are no
|
||||||
// outgoing HTLCs in her channel as the only HTLC has already been
|
// outgoing HTLCs in her channel as the only HTLC has already been
|
||||||
// canceled.
|
// canceled.
|
||||||
|
|||||||
@@ -1578,7 +1578,6 @@ func sendAllCoinsToAddrType(ht *lntest.HarnessTest,
|
|||||||
})
|
})
|
||||||
|
|
||||||
ht.MineBlocksAndAssertNumTxes(1, 1)
|
ht.MineBlocksAndAssertNumTxes(1, 1)
|
||||||
ht.WaitForBlockchainSync(hn)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// testPsbtChanFundingFailFlow tests the failing of a funding flow by the
|
// testPsbtChanFundingFailFlow tests the failing of a funding flow by the
|
||||||
|
|||||||
@@ -852,10 +852,6 @@ func testErrorHandlingOnChainFailure(ht *lntest.HarnessTest) {
|
|||||||
ht.AssertNumPendingSweeps(ht.Bob, 0)
|
ht.AssertNumPendingSweeps(ht.Bob, 0)
|
||||||
ht.MineBlocksAndAssertNumTxes(1, 1)
|
ht.MineBlocksAndAssertNumTxes(1, 1)
|
||||||
|
|
||||||
// Assert that the HTLC has cleared.
|
|
||||||
ht.WaitForBlockchainSync(ht.Bob)
|
|
||||||
ht.WaitForBlockchainSync(ht.Alice)
|
|
||||||
|
|
||||||
ht.AssertHTLCNotActive(ht.Bob, testCase.channels[0], hash[:])
|
ht.AssertHTLCNotActive(ht.Bob, testCase.channels[0], hash[:])
|
||||||
ht.AssertHTLCNotActive(ht.Alice, testCase.channels[0], hash[:])
|
ht.AssertHTLCNotActive(ht.Alice, testCase.channels[0], hash[:])
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user