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

Commit f15be37

Browse files
authored
Merge pull request #5806 from ldoktor/curl
ci/openshift-ci: Use loop instead of curl --retry-all-errors
2 parents eb30da4 + 4e8858e commit f15be37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.ci/openshift-ci/run_smoke_test.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ else
5656
port=$(oc get service/http-server-service -o jsonpath='{.spec.ports[0].nodePort}')
5757
fi
5858

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

6163
grep "${hello_msg}" hello_msg.txt > /dev/null
6264
test_status=$?

0 commit comments

Comments
 (0)