Skip to content

Commit

Permalink
exit failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Apr 18, 2024
1 parent 9054335 commit 3377e30
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,14 @@ jobs:
local msg="${3}"
CURL_RESPONSE=$(curl --write-out '%{http_code}' --output /dev/null --silent --header "Authorization: Bearer ${token}" http://localhost:8000/auth)
printf "Test: %15s: Result %s == %s\n" "${msg}" "${expected}" "${CURL_RESPONSE}"
printf "Test: %15s: Result %s == %s: " "${msg}" "${expected}" "${CURL_RESPONSE}"
if [ "${2}" != "${CURL_RESPONSE}" ]; then
printf "Failed\n"
exit 255
fi
printf "OK\n"
}
radix-oauth-guard &
Expand Down

0 comments on commit 3377e30

Please sign in to comment.