Skip to content

Commit

Permalink
fix: restart policy for esplora
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Aug 12, 2024
1 parent 329675d commit cfba041
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ jobs:
-H "Content-Type: application/json" \
-d '{"statechain_id":"550e8400e29b41d4a716446655440000"}'
docker logs $(docker ps -qf "name=enclave")
- name: Verify Esplora Service with Curl
run: |
docker logs $(docker ps -qf "name=esplora-container")
docker exec $(docker ps -qf "name=esplora-container") \
curl http://esplora-container:8094/regtest/api/blocks/tip/height
docker logs $(docker ps -qf "name=esplora-container")
- name: Verify Node Service with Curl
run: |
docker ps -a
Expand All @@ -112,6 +106,12 @@ jobs:
-H 'Content-Type: application/json' \
-d '{"address":"bcrt1pkygl356c6fvk6ptx72c64hrjkhcxecj4hjzfzc430svzczuv6m0s42lvwx","amount":1000}'
docker logs $(docker ps -qf "name=node-server")
- name: Verify Esplora Service with Curl
run: |
docker logs $(docker ps -qf "name=esplora-container")
docker exec $(docker ps -qf "name=esplora-container") \
curl http://esplora-container:8094/regtest/api/blocks/tip/height
docker logs $(docker ps -qf "name=esplora-container")
- name: Check connectivity between containers
run: |
# Get container IDs
Expand Down
1 change: 1 addition & 0 deletions docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ services:
- .:/usr/src/app
working_dir: /usr/src/app
command: ["node ./clients/tests/web/server-regtest.cjs"]
restart: unless-stopped
depends_on:
- esplora
ports:
Expand Down

0 comments on commit cfba041

Please sign in to comment.