Skip to content

Commit

Permalink
try something
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Apr 3, 2024
1 parent 22a773b commit 5817b59
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/test_mint_regtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5817b59

Please sign in to comment.