Skip to content

Commit

Permalink
Merge pull request #9425 from yyforyongyu/flake-fix
Browse files Browse the repository at this point in the history
itest: fix flake in `testSweepHTLCs`
  • Loading branch information
guggero authored Jan 17, 2025
2 parents 27df4af + c24f839 commit baa3b0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions itest/lnd_sweep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit baa3b0d

Please sign in to comment.