Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5806 from ldoktor/curl
Browse files Browse the repository at this point in the history
ci/openshift-ci: Use loop instead of curl --retry-all-errors
  • Loading branch information
wainersm authored Jan 23, 2024
2 parents eb30da4 + 4e8858e commit f15be37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .ci/openshift-ci/run_smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ else
port=$(oc get service/http-server-service -o jsonpath='{.spec.ports[0].nodePort}')
fi

curl "${host}:${port}${hello_file}" -s -o hello_msg.txt --retry 60 --retry-delay 1 --retry-all-errors
info "Wait for the HTTP server to respond"
rm -f hello_msg.txt
waitForProcess 60 1 "curl '${host}:${port}${hello_file}' -s -o hello_msg.txt"

grep "${hello_msg}" hello_msg.txt > /dev/null
test_status=$?
Expand Down

0 comments on commit f15be37

Please sign in to comment.