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:
parent
5f36800100
commit
9fcf566540
2 changed files with 6 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue