Skip to content

Commit

Permalink
add momentary sleep to uptime wait per #5092
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuzina authored and bartaz committed May 21, 2024
1 parent fdd7162 commit e4e8a21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr-percy-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ jobs:
while [ "$wait_time_secs" -lt "$max_wait_time_secs" ]; do
if curl -s localhost:8101/_status/check -I; then
echo "Server is up!"
# sometimes if we start the server too soon after it starts responding, percy snapshot errors happen.
sleep 5
break
else
wait_time_secs=$((wait_time_secs + sleep_interval_secs))
Expand Down

0 comments on commit e4e8a21

Please sign in to comment.