Skip to content

Commit

Permalink
WIP: Debug Node 20 CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Dec 12, 2024
1 parent 184bb99 commit 7b57175
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/distributables-test/unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,20 @@ SERVER_PID=$!

sleep 10

# After starting server
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..."

# CSRF protection fully blocks unrecognized/missing origin requests:
CURL_OPTIONS="--silent --fail -i"
CURL_OPTIONS="-v --fail -i"
WITH_ORIGIN="-HOrigin: https://app.httptoolkit.tech"
AS_JSON="-HContent-Type: application/json"

Expand Down

0 comments on commit 7b57175

Please sign in to comment.