Skip to content

Commit

Permalink
Fix smoketest script for reverseproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Nov 25, 2024
1 parent 20087d4 commit fecad8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ooniapi/services/reverseproxy/scripts/docker-smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ docker run -d --name $CONTAINER_NAME -p $PORT:80 ${IMAGE}
trap cleanup INT TERM EXIT

sleep 2
response=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:$PORT/health)
response=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:$PORT/)
if [ "${response}" -eq 200 ]; then
echo "Smoke test passed: Received 200 OK from /health endpoint."
else
Expand Down

0 comments on commit fecad8b

Please sign in to comment.