test: fix lndrest on regtest (#2811)
* fix: lndrest on regtest * fix some race conditions on lndrest
This commit is contained in:
parent
61c71660b8
commit
1b9bb32ca0
6 changed files with 19 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue