Skip to content

Commit

Permalink
fix: setup script for web client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Aug 13, 2024
1 parent 6fef076 commit 272dda7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 47 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ jobs:
node test_basic_workflow2.js
node test_atomic_swap.js
mocha ./test/tb04-simple-lightning-latch.mjs --exit
- name: Run start-test-components.sh for web client tests
run: |
cd clients/tests/web
chmod +x start-test-components.sh
./start-test-components.sh
- name: Run web client Tests
run: |
cd clients/tests/web
Expand Down
20 changes: 0 additions & 20 deletions clients/tests/web/Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion clients/tests/web/start-test-components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ docker run --name esplora-container -p 50002:50002 -p 8094:80 \
DOCKER_PID=$!

# Wait for both processes to finish
wait $NODE_PID $DOCKER_PID
# wait $NODE_PID $DOCKER_PID
26 changes: 0 additions & 26 deletions docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,32 +148,6 @@ services:
depends_on:
- bitcoind

esplora:
image: blockstream/esplora
container_name: esplora-container
command: /srv/explorer/run.sh bitcoin-regtest explorer
ports:
- "50002:50002"
- "8094:80"
volumes:
- esplora-data:/data
environment:
CORS_ALLOW: '*'
restart: unless-stopped
depends_on:
- bitcoind

node_server:
build:
context: .
dockerfile: ./clients/tests/web/Dockerfile
container_name: node-server
restart: unless-stopped
depends_on:
- esplora
ports:
- "3000:3000"

volumes:
bitcoin_data:
electrs-data:
Expand Down

0 comments on commit 272dda7

Please sign in to comment.