fix: time margin for deleting failed payments (#2147)

this pr adds a 15 minutes margin before deleting failed outgoing payments.
This commit is contained in:
dni ⚡ 2023-12-02 00:41:09 +01:00 committed by GitHub
parent 5f36800100
commit 9fcf566540
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

@ -766,10 +766,10 @@ async def test_pay_hold_invoice_check_pending_and_fail_cancel_payment_task_in_me
assert status.paid is False
# now the payment should be gone after the status check
payment_db_after_status_check = await get_standalone_payment(
invoice_obj.payment_hash
)
assert payment_db_after_status_check is None
# payment_db_after_status_check = await get_standalone_payment(
# invoice_obj.payment_hash
# )
# assert payment_db_after_status_check is None
@pytest.mark.asyncio