mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
chore: allow more headroom for migration tests
This commit is contained in:
parent
e8ed48bd7a
commit
0d70d7c9ac
6
.github/workflows/integration-test.yml
vendored
6
.github/workflows/integration-test.yml
vendored
@ -148,11 +148,11 @@ jobs:
|
|||||||
cd backend
|
cd backend
|
||||||
uvicorn main:app --port "8080" --forwarded-allow-ips '*' &
|
uvicorn main:app --port "8080" --forwarded-allow-ips '*' &
|
||||||
UVICORN_PID=$!
|
UVICORN_PID=$!
|
||||||
# Wait up to 20 seconds for the server to start
|
# Wait up to 40 seconds for the server to start
|
||||||
for i in {1..20}; do
|
for i in {1..40}; do
|
||||||
curl -s http://localhost:8080/api/config > /dev/null && break
|
curl -s http://localhost:8080/api/config > /dev/null && break
|
||||||
sleep 1
|
sleep 1
|
||||||
if [ $i -eq 20 ]; then
|
if [ $i -eq 40 ]; then
|
||||||
echo "Server failed to start"
|
echo "Server failed to start"
|
||||||
kill -9 $UVICORN_PID
|
kill -9 $UVICORN_PID
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user