ci: increase timeout on api sanity check
This commit is contained in:
parent
b90a58f4f0
commit
acb4e49e18
1 changed files with 3 additions and 3 deletions
6
.github/test.sh
vendored
6
.github/test.sh
vendored
|
@ -14,7 +14,7 @@ waitport() {
|
||||||
test_api() {
|
test_api() {
|
||||||
waitport 3000
|
waitport 3000
|
||||||
curl -m 3 http://localhost:3000/
|
curl -m 3 http://localhost:3000/
|
||||||
API_RESPONSE=$(curl -m 3 http://localhost:3000/ \
|
API_RESPONSE=$(curl -m 10 http://localhost:3000/ \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H "Accept: application/json" \
|
-H "Accept: application/json" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
|
@ -24,7 +24,7 @@ test_api() {
|
||||||
STATUS=$(echo "$API_RESPONSE" | jq -r .status)
|
STATUS=$(echo "$API_RESPONSE" | jq -r .status)
|
||||||
STREAM_URL=$(echo "$API_RESPONSE" | jq -r .url)
|
STREAM_URL=$(echo "$API_RESPONSE" | jq -r .url)
|
||||||
[ "$STATUS" = tunnel ] || exit 1;
|
[ "$STATUS" = tunnel ] || exit 1;
|
||||||
S=$(curl -I -m 3 "$STREAM_URL")
|
S=$(curl -I -m 10 "$STREAM_URL")
|
||||||
|
|
||||||
CONTENT_LENGTH=$(echo "$S" \
|
CONTENT_LENGTH=$(echo "$S" \
|
||||||
| grep -i content-length \
|
| grep -i content-length \
|
||||||
|
@ -64,4 +64,4 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wait || exit $?
|
wait || exit $?
|
||||||
|
|
Loading…
Reference in a new issue