test: refactor to not use paid_invoices stream for real invoice tests (#2628)

This commit is contained in:
dni ⚡
2024-08-07 16:19:53 +02:00
committed by GitHub
parent ddb8fcb986
commit 40ffa7dea0
5 changed files with 55 additions and 58 deletions
-1
View File
@@ -972,7 +972,6 @@ async def update_payment_details(
f"UPDATE apipayments SET {', '.join(set_clause)} WHERE checking_id = ?",
tuple(set_variables),
)
return
async def update_payment_extra(
+2
View File
@@ -217,6 +217,8 @@ async def invoice_callback_dispatcher(checking_id: str, is_internal: bool = Fals
preimage=status.preimage,
status=PaymentState.SUCCESS,
)
payment = await get_standalone_payment(checking_id, incoming=True)
assert payment, "updated payment not found"
internal = "internal" if is_internal else ""
logger.success(f"{internal} invoice {checking_id} settled")
for name, send_chan in invoice_listeners.items():