Skip to content

Commit c76b9d2

Browse files
committed
feat(ci): add tests for repeating requests
There seems to be a gunicorn issue that it fails upon restart, add test convering this. Issue #3507
1 parent 4f8b414 commit c76b9d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/container-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ jobs:
120120
- name: Check service is running
121121
working-directory: docker-compose
122122
run: ./test-online
123+
- name: Repeated requests
124+
run: |
125+
. docker-compose/.test.env
126+
set +e
127+
for i in $( seq 40000 ) ; do
128+
if ! curl --silent --show-error --fail-with-body --insecure --output /dev/null --max-time 1 "${URL}healthz/" ; then
129+
echo "Failed after $i requests!"
130+
exit 1
131+
fi
132+
done
123133
- name: Shutdown service
124134
working-directory: docker-compose
125135
run: ./test-stop

0 commit comments

Comments
 (0)