Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ekdeveloper committed Sep 12, 2024
1 parent 0de274e commit 0633a12
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,23 @@ jobs:

- name: Wait for application to be ready
run: |
max_attempts=12
attempt=0
echo "Waiting for the application to be ready..."
while ! docker logs "node-fhir-server-mongo-fhir-1" 2>&1 | grep "Server is up and running!"; do
# Increment the attempt counter
attempt=$((attempt + 1))
if [ "$attempt" -ge "$max_attempts" ]; then
break
fi
echo "Waiting..."
sleep 5
done
echo "fhir container logs:"
docker logs "node-fhir-server-mongo-fhir-1"
echo "fhir container logs end"
- name: Test new patient request
run: sh ./scripts/curlRequests/new_patient_test.sh
Expand Down

0 comments on commit 0633a12

Please sign in to comment.