Skip to content

Commit 3fc6741

Browse files
authored
Merge pull request #10730 from ziggie1984/itest/fix-introduction-blinded-error-flake
itest: fix flake in testIntroductionNodeError
2 parents ad30382 + 33cb63f commit 3fc6741

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

itest/lnd_route_blinding_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,13 @@ func testIntroductionNodeError(ht *lntest.HarnessTest) {
704704
// at the introduction node.
705705
testCase.drainCarolLiquidity(true)
706706

707+
// NOTE: The drain above causes Bob to originate a payment, producing
708+
// SEND-type HTLC events that may still be in-flight when we subscribe.
709+
// Wait for the commitment dance to finish so those events are flushed
710+
// before we subscribe, preventing them from corrupting the assertion
711+
// below.
712+
flakePaymentStreamReturnEarly()
713+
707714
// Subscribe to Bob's HTLC events so that we can observe the payment
708715
// coming in.
709716
bobEvents := bob.RPC.SubscribeHtlcEvents()

0 commit comments

Comments
 (0)