Skip to content

Commit 4e1c113

Browse files
committed
debug
1 parent 9136473 commit 4e1c113

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docker-compose.test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ services:
2727
- VPN_DOWNRATE=5mbit
2828
- VPN_UPRATE=5mbit
2929
- VPN_HOST=127.0.0.1
30+
- VPN_INSTANCE_COUNT=1
3031
- VPN_CONNECT_INSTANCE_COUNT=1
3132
- VPN_CONNECT_PROXY_PORT=3128
3233
- VPN_SERVICE_API_KEY=test_vpn_key
@@ -59,7 +60,7 @@ services:
5960
sleep 10
6061
docker exec "$${CONTAINER_NAME}" npm install
6162
docker exec "$${CONTAINER_NAME}" npm run test-unit
62-
docker exec "$${CONTAINER_NAME}" NODE_DEBUG=nock:* mocha test/app.ts
63+
docker exec -e NODE_DEBUG=nock:* "$${CONTAINER_NAME}" mocha test/app.ts
6364
# Test the learn-address script directly
6465
docker exec "$${CONTAINER_NAME}" env LEARN_ADDRESS_DEBUG=true /usr/src/app/openvpn/scripts/learn-address.sh 10mbit 5mbit add 10.0.0.100 test-client debug lo
6566
# Check if log file was created and show its contents

0 commit comments

Comments
 (0)