Skip to content

Commit

Permalink
WIP: Wait for server startup in distributable tests
Browse files Browse the repository at this point in the history
Without this we seem to hit issues in Mac 14 M1 usage in GHA
sometimes - maybe during GHA high usage periods?
  • Loading branch information
pimterry committed Dec 16, 2024
1 parent 08f7831 commit c0f0f98
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/distributables-test/unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ echo "\nStarting server..."
./httptoolkit-server/bin/httptoolkit-server start &
SERVER_PID=$!

sleep 10
echo "Waiting for server..."
for i in {1..30}; do
if curl -s http://127.0.0.1:45456/ >/dev/null 2>&1; then
echo "Server is up"
break
fi
sleep 1
done

echo "\nTesting server..."

Expand Down

0 comments on commit c0f0f98

Please sign in to comment.