Skip to content

Commit cedb150

Browse files
committed
Add proxy readiness check and netcat dependency
1 parent f5d81ff commit cedb150

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/test_proxy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Install dependencies
1414
run: |
1515
sudo apt-get update
16-
sudo apt-get install -y build-essential libssl-dev zlib1g-dev libcurl4-openssl-dev libbrotli-dev libzstd-dev
16+
sudo apt-get install -y build-essential libssl-dev zlib1g-dev libcurl4-openssl-dev libbrotli-dev libzstd-dev netcat
1717
1818
- name: Run proxy tests
1919
run: |

test/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ proxy : test_proxy
5454
@echo "Starting proxy server..."
5555
cd proxy && \
5656
docker compose up -d
57+
@echo "Waiting for proxy to be ready..."
58+
@until nc -z localhost 3128 && nc -z localhost 3129; do sleep 1; done
5759
@echo "Running proxy tests..."
5860
./test_proxy; \
5961
exit_code=$$?; \

0 commit comments

Comments
 (0)