Skip to content

Commit 1265e0d

Browse files
committed
WIP: Debug Node 20 CI failures
1 parent 08f7831 commit 1265e0d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/distributables-test/unix.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,20 @@ SERVER_PID=$!
1313

1414
sleep 10
1515

16+
# After starting server
17+
echo "Waiting for server..."
18+
for i in {1..30}; do
19+
if curl -s http://127.0.0.1:45456/ >/dev/null 2>&1; then
20+
echo "Server is up"
21+
break
22+
fi
23+
sleep 1
24+
done
25+
1626
echo "\nTesting server..."
1727

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

0 commit comments

Comments
 (0)