Skip to content

Commit baa3b0d

Browse files
authored
Merge pull request #9425 from yyforyongyu/flake-fix
itest: fix flake in `testSweepHTLCs`
2 parents 27df4af + c24f839 commit baa3b0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

itest/lnd_sweep_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -860,13 +860,13 @@ func testSweepHTLCs(ht *lntest.HarnessTest) {
860860
// Carol settles the first invoice.
861861
carol.RPC.SettleInvoice(preimageSettled[:])
862862

863+
// Bob should have settled his outgoing HTLC with Carol.
864+
ht.AssertHTLCNotActive(bob, bcChanPoint, payHashSettled[:])
865+
863866
// Let Carol go offline so we can focus on testing Bob's sweeping
864867
// behavior.
865868
ht.Shutdown(carol)
866869

867-
// Bob should have settled his outgoing HTLC with Carol.
868-
ht.AssertHTLCNotActive(bob, bcChanPoint, payHashSettled[:])
869-
870870
// We'll now mine enough blocks to trigger Bob to force close channel
871871
// Bob->Carol due to his outgoing HTLC is about to timeout. With the
872872
// default outgoing broadcast delta of zero, this will be the same

0 commit comments

Comments
 (0)