Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Jun 25, 2024
1 parent 50c85da commit 65dd5af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_wallet_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def callback(msg: JSONRPCNotficationParams):
await asyncio.sleep(wait + 2)

# TODO: check for pending and paid states according to: https://github.com/cashubtc/nuts/pull/136
# TODO: we have three messages here, but the value "paid" only changes once
# the mint sends an update when the quote is pending but the API does not express that yet

# first we expect the issued=False state to arrive

Expand All @@ -60,7 +62,6 @@ def callback(msg: JSONRPCNotficationParams):

assert msg_stack[0].payload["paid"] is False

# TODO: we also send this when the quote is pending but the API does not express that yet
assert msg_stack[1].payload["paid"] is True

assert msg_stack[2].payload["paid"] is True
Expand Down

0 comments on commit 65dd5af

Please sign in to comment.