itest+lntest: add flakePaymentStreamReturnEarly

Fix the flake found in the `testRelayingBlindedError` and documents the
flake found in other tests in one place.
This commit is contained in:
yyforyongyu committed 2025-03-18 20:24:34 +08:00
1 parent e0296083ca
commit d122a2ecc6
5 files changed
+27 -17

No files matched your search

+4
View File
@@ -667,6 +667,10 @@ func testRelayingBlindedError(ht *lntest.HarnessTest) {
// so that she can't forward the payment to Dave.
testCase.drainCarolLiquidity(false)
// NOTE: The above draining requires Carol to send a payment, which may
// create extra events, causing the `AssertHtlcEvents` to fail below.
flakePaymentStreamReturnEarly()
// Subscribe to Carol's HTLC events so that we can observe the payment
// coming in.
carolEvents := testCase.carol.RPC.SubscribeHtlcEvents()