Skip to content

Commit

Permalink
Adjust host settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sihamon committed Nov 12, 2023
1 parent 267eb96 commit 63b444f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/separate_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ jobs:
ref: ${{ matrix.mint-branch}}
path: mint
submodules: recursive
token: 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
- name: Checkout wallet branch
uses: actions/checkout@v4
with:
ref: ${{ matrix.wallet-branch}}
path: wallet
submodules: recursive
token: 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
- name: Set up Poetry ${{ matrix.poetry-version }}
uses: abatilo/actions-poetry@v2
with:
Expand All @@ -49,9 +51,9 @@ jobs:
env:
LIGHTNING: false
WALLET_NAME: test_wallet
MINT_HOST: localhost
MINT_HOST: "127.0.0.1"
MINT_PORT: 3337
MINT_LISTEN_HOST: localhost
MINT_LISTEN_HOST: "127.0.0.1"
MINT_LISTEN_PORT: 3337
MINT_DATABASE: "data/mint"
MINT_PRIVATE_KEY: "TEST_PRIVATE_KEY"
Expand All @@ -63,9 +65,9 @@ jobs:
env:
LIGHTNING: false
WALLET_NAME: test_wallet
MINT_HOST: localhost
MINT_HOST: "127.0.0.1"
MINT_PORT: 3337
MINT_LISTEN_HOST: localhost
MINT_LISTEN_HOST: "127.0.0.1"
MINT_LISTEN_PORT: 3337
MINT_DATABASE: "data/mint"
MINT_PRIVATE_KEY: "TEST_PRIVATE_KEY"
Expand Down
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
from cashu.core.settings import settings

SERVER_PORT = 3337
SERVER_ENDPOINT = f"http://localhost:{SERVER_PORT}"
SERVER_ENDPOINT = f"http://127.0.0.1:{SERVER_PORT}"

settings.cashu_dir = "./test_data/"
settings.mint_host = "localhost"
settings.mint_host = "127.0.0.1"
settings.mint_port = SERVER_PORT
settings.mint_host = "0.0.0.0"
settings.mint_listen_host = "127.0.0.1"
settings.mint_listen_port = SERVER_PORT
settings.mint_url = SERVER_ENDPOINT
settings.lightning = True
Expand Down

0 comments on commit 63b444f

Please sign in to comment.