E2E: Fix endless loop on error
This commit is contained in:
parent
e2ed136aad
commit
dfcafc9ca0
10
test_e2e.sh
10
test_e2e.sh
|
|
@ -1213,9 +1213,15 @@ function e2e::http() {
|
||||||
--http-pprof \
|
--http-pprof \
|
||||||
--link="link" \
|
--link="link" \
|
||||||
>> "$1" 2>&1 &
|
>> "$1" 2>&1 &
|
||||||
while ! curl --silent --output /dev/null http://localhost:$BINDPORT; do
|
|
||||||
# do nothing, just wait for the HTTP to come up
|
# do nothing, just wait for the HTTP to come up
|
||||||
true
|
for i in $(seq 1 5); do
|
||||||
|
sleep 1
|
||||||
|
if curl --silent --output /dev/null http://localhost:$BINDPORT; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
if [[ "$i" == 5 ]]; then
|
||||||
|
fail "HTTP server failed to start"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# check that health endpoint fails
|
# check that health endpoint fails
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue