summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Dumpleton <Graham.Dumpleton@gmail.com>2021-06-18 12:09:28 +1000
committerGraham Dumpleton <Graham.Dumpleton@gmail.com>2021-06-18 12:09:28 +1000
commit1c5c75946ce97dce32eba8ff7c8da56a93ba77c1 (patch)
tree4565f52a9f919f7ea76b4d792975a2b17c39f592
parent9ed2c5007e94ba418dc0bdf0577bd9aeb66e5d15 (diff)
downloadmod_wsgi-1c5c75946ce97dce32eba8ff7c8da56a93ba77c1.tar.gz
Wrong port, and fail loop if wait too long.
-rw-r--r--.github/workflows/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 3dca3ed..bde9c6e 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -33,6 +33,6 @@ jobs:
- name: "Start up mod_wsgi-express"
run: "mod_wsgi-express start-server tests/hello.wsgi --port 8080 --log-to-terminal --pid-file httpd.pid &"
- name: "Wait for server to start"
- run: "while [ ! -f httpd.pid ]; do sleep 1; done; sleep 2"
+ run: "END=$((SECONDS+15)); while [ ! -f httpd.pid ]; do if [ $SECONDS -gt $END ]; then echo 'Failed'; exit 1; fi; echo 'Waiting...'; sleep 1; done; sleep 2"
- name: "Trigger single WSGI request"
- run: "curl --verbose --fail --show-error http://localhost:8000"
+ run: "curl --verbose --fail --show-error http://localhost:8080"