Skip to content

Commit

Permalink
fix subscription test
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Nov 1, 2024
1 parent b19ce96 commit fec3270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_wallet_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def callback(msg: JSONRPCNotficationParams):
nonlocal triggered, msg_stack
triggered = True
msg_stack.append(msg)
asyncio.run(wallet.mint(int(invoice.amount), quote_id=mint_quote.quote))
asyncio.run(wallet.mint(int(mint_quote.amount), quote_id=mint_quote.quote))

invoice, sub = await wallet.request_mint_with_callback(128, callback=callback)
mint_quote, sub = await wallet.request_mint_with_callback(128, callback=callback)
await pay_if_regtest(mint_quote.request)
wait = settings.fakewallet_delay_incoming_payment or 2
await asyncio.sleep(wait + 2)
Expand Down

0 comments on commit fec3270

Please sign in to comment.