Skip to content

Commit ee21cfe

Browse files
authored
Merge pull request #6196 from NHSDigital/increase-e2e-health-check-time
Increase health check time in E2E test script
2 parents 3db6a78 + c44e233 commit ee21cfe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/e2e

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ trap cleanup EXIT INT TERM
180180
# Wait for Rails health
181181

182182
echo "[e2e] Waiting for Rails to become healthy on $HEALTH_CHECK_URL"
183-
for i in {1..6}; do
183+
for i in {1..10}; do
184184
printf "."
185185
if curl -fsS "$HEALTH_CHECK_URL" > /dev/null 2>&1; then
186186
printf "\n[e2e] Rails is up.\n"
187187
break
188188
fi
189189
sleep 1
190-
if [ "$i" -eq 6 ]; then
190+
if [ "$i" -eq 10 ]; then
191191
printf "\n[e2e] ERROR: Rails server did not become ready in time.\n" >&2
192192
echo "[e2e] Contents of /tmp/e2e-foreman.log:"
193193
cat /tmp/e2e-foreman.log

0 commit comments

Comments
 (0)