From 9bb4b1b1bd2fa52f7be507237250e0e2e2eb8d0c Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:32:32 +0200 Subject: [PATCH] do not pay with wallet but with ledger --- tests/test_mint_regtest.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/tests/test_mint_regtest.py b/tests/test_mint_regtest.py index a5c91183..043843c4 100644 --- a/tests/test_mint_regtest.py +++ b/tests/test_mint_regtest.py @@ -44,14 +44,15 @@ async def test_regtest_pending_quote(wallet: Wallet, ledger: Ledger): quote = await wallet.get_pay_amount_with_fees(invoice_payment_request) total_amount = quote.amount + quote.fee_reserve _, send_proofs = await wallet.split_to_send(wallet.proofs, total_amount) - asyncio.create_task( - wallet.pay_lightning( - proofs=send_proofs, - invoice=invoice_payment_request, - fee_reserve_sat=quote.fee_reserve, - quote_id=quote.quote, - ) - ) + asyncio.create_task(ledger.melt(proofs=send_proofs, quote=quote.quote)) + # asyncio.create_task( + # wallet.pay_lightning( + # proofs=send_proofs, + # invoice=invoice_payment_request, + # fee_reserve_sat=quote.fee_reserve, + # quote_id=quote.quote, + # ) + # ) await asyncio.sleep(SLEEP_TIME) # expect that melt quote is still pending @@ -68,9 +69,6 @@ async def test_regtest_pending_quote(wallet: Wallet, ledger: Ledger): settle_invoice(preimage=preimage) await asyncio.sleep(SLEEP_TIME) - # run startup routinge - await ledger.startup_ledger() - # expect that proofs are now spent states = await ledger.check_proofs_state([p.Y for p in send_proofs]) assert all([s.state == SpentState.spent for s in states])