From 5817b59815a40ab1eb8e0db49fa82038de9b84a5 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:09:08 +0200 Subject: [PATCH] try something --- tests/test_mint_regtest.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/tests/test_mint_regtest.py b/tests/test_mint_regtest.py index 7b5bb757..a5c91183 100644 --- a/tests/test_mint_regtest.py +++ b/tests/test_mint_regtest.py @@ -68,16 +68,12 @@ async def test_regtest_pending_quote(wallet: Wallet, ledger: Ledger): settle_invoice(preimage=preimage) await asyncio.sleep(SLEEP_TIME) - is_spent = False - for _ in range(10): - # expect that proofs are now spent - states = await ledger.check_proofs_state([p.Y for p in send_proofs]) - is_spent = all([s.state == SpentState.spent for s in states]) - if is_spent: - break - await asyncio.sleep(SLEEP_TIME) + # run startup routinge + await ledger.startup_ledger() - assert is_spent + # 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]) # expect that no melt quote is pending melt_quotes = await ledger.crud.get_all_melt_quotes_from_pending_proofs(