From 63b444fd3861401956956e2fe0f7a8c878e1e979 Mon Sep 17 00:00:00 2001 From: sihamon Date: Sun, 12 Nov 2023 21:27:40 +0100 Subject: [PATCH] Adjust host settings --- .github/workflows/separate_tests.yml | 10 ++++++---- tests/conftest.py | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/separate_tests.yml b/.github/workflows/separate_tests.yml index 5a240579..ffd6988e 100644 --- a/.github/workflows/separate_tests.yml +++ b/.github/workflows/separate_tests.yml @@ -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: @@ -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" @@ -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" diff --git a/tests/conftest.py b/tests/conftest.py index afc4471e..f544628c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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