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:
5 files changed
+27
-17
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user