From 0d70d7c9ac953d9f4b2a0b7963c3283b1c538a04 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 5 Jul 2024 23:58:13 -0700 Subject: [PATCH] chore: allow more headroom for migration tests --- .github/workflows/integration-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index d2d04032c..4ef3d2771 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -148,11 +148,11 @@ jobs: cd backend uvicorn main:app --port "8080" --forwarded-allow-ips '*' & UVICORN_PID=$! - # Wait up to 20 seconds for the server to start - for i in {1..20}; do + # Wait up to 40 seconds for the server to start + for i in {1..40}; do curl -s http://localhost:8080/api/config > /dev/null && break sleep 1 - if [ $i -eq 20 ]; then + if [ $i -eq 40 ]; then echo "Server failed to start" kill -9 $UVICORN_PID exit 1