We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ad30382 + 33cb63f commit 3fc6741Copy full SHA for 3fc6741
1 file changed
itest/lnd_route_blinding_test.go
@@ -704,6 +704,13 @@ func testIntroductionNodeError(ht *lntest.HarnessTest) {
704
// at the introduction node.
705
testCase.drainCarolLiquidity(true)
706
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
+
714
// Subscribe to Bob's HTLC events so that we can observe the payment
715
// coming in.
716
bobEvents := bob.RPC.SubscribeHtlcEvents()
0 commit comments