mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-18 05:13:36 +01:00
Merge pull request #9425 from yyforyongyu/flake-fix
itest: fix flake in `testSweepHTLCs`
This commit is contained in:
commit
baa3b0dea3
@ -860,13 +860,13 @@ func testSweepHTLCs(ht *lntest.HarnessTest) {
|
||||
// Carol settles the first invoice.
|
||||
carol.RPC.SettleInvoice(preimageSettled[:])
|
||||
|
||||
// Bob should have settled his outgoing HTLC with Carol.
|
||||
ht.AssertHTLCNotActive(bob, bcChanPoint, payHashSettled[:])
|
||||
|
||||
// Let Carol go offline so we can focus on testing Bob's sweeping
|
||||
// behavior.
|
||||
ht.Shutdown(carol)
|
||||
|
||||
// Bob should have settled his outgoing HTLC with Carol.
|
||||
ht.AssertHTLCNotActive(bob, bcChanPoint, payHashSettled[:])
|
||||
|
||||
// We'll now mine enough blocks to trigger Bob to force close channel
|
||||
// Bob->Carol due to his outgoing HTLC is about to timeout. With the
|
||||
// default outgoing broadcast delta of zero, this will be the same
|
||||
|
Loading…
Reference in New Issue
Block a user