Skip to content

Commit

Permalink
retry
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Apr 3, 2024
1 parent bd671d4 commit a54078c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/test_mint_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from cashu.mint.crud import LedgerCrudSqlite
from cashu.mint.ledger import Ledger
from cashu.wallet.wallet import Wallet
from tests.conftest import SERVER_ENDPOINT
from tests.helpers import (
cancel_invoice,
get_hold_invoice,
Expand All @@ -25,7 +26,6 @@
DERIVATION_PATH = "m/0'/0'/0'"
DECRYPTON_KEY = "testdecryptionkey"
ENCRYPTED_SEED = "U2FsdGVkX1_7UU_-nVBMBWDy_9yDu4KeYb7MH8cJTYQGD4RWl82PALH8j-HKzTrI"
BASE_URL = "http://localhost:3337"


async def assert_err(f, msg):
Expand All @@ -46,7 +46,7 @@ def assert_amt(proofs: List[Proof], expected: int):
@pytest_asyncio.fixture(scope="function")
async def wallet(ledger: Ledger):
wallet1 = await Wallet.with_db(
url=BASE_URL,
url=SERVER_ENDPOINT,
db="test_data/wallet_mint_api_deprecated",
name="wallet_mint_api_deprecated",
)
Expand Down Expand Up @@ -393,6 +393,6 @@ async def test_startup_regtest_pending_quote_failure(wallet: Wallet, ledger: Led
)
assert not melt_quotes

# expect that proofs are spent
# expect that proofs are unspent
states = await ledger.check_proofs_state([p.Y for p in send_proofs])
assert all([s.state == SpentState.unspent for s in states])
2 changes: 1 addition & 1 deletion tests/test_mint_regtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def test_regtest_pending_quote(wallet: Wallet, ledger: Ledger):
settle_invoice(preimage=preimage)
await asyncio.sleep(1)

# expect that proofs are still pending
# 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])

Expand Down

0 comments on commit a54078c

Please sign in to comment.