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

+1 -7
View File
@@ -1224,13 +1224,7 @@ func testDataLossProtection(ht *lntest.HarnessTest) {
// payment hashes.
ht.CompletePaymentRequests(carol, payReqs[numInvoices/2:])
// TODO(yy): remove the sleep once the following bug is fixed.
//
// While the payment is reported as settled, the commitment
// dance may not be finished, which leaves several HTLCs in the
// commitment. Later on, when Carol force closes this channel,
// she would have HTLCs there and the test won't pass.
time.Sleep(2 * time.Second)
flakePaymentStreamReturnEarly()
// Now we shutdown Dave, copying over the its temporary
// database state which has the *prior* channel state over his