test: fix lndrest on regtest (#2811)

* fix: lndrest on regtest
* fix some race conditions on lndrest
This commit is contained in:
dni ⚡ 2024-12-12 07:54:43 +01:00 committed by GitHub
parent 61c71660b8
commit 1b9bb32ca0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 19 additions and 11 deletions

View file

@ -57,6 +57,7 @@ async def test_pay_real_invoice(
await asyncio.sleep(1)
balance = await get_node_balance_sats()
# TODO: maybe take fee into consideration?
assert prev_balance - balance == 100
@ -158,7 +159,7 @@ async def test_pay_hold_invoice_check_pending(
headers=adminkey_headers_from,
)
)
await asyncio.sleep(1)
await asyncio.sleep(3)
# get payment hash from the invoice
invoice_obj = bolt11.decode(invoice["payment_request"])
settle_invoice(preimage)