File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
http-tests/admin/packages Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,16 @@ purge_cache "$FRONTEND_VARNISH_SERVICE"
2626
2727# Wait for package installation to complete (poll for stylesheet availability)
2828elapsed=0
29+ iteration=0
2930while [ $( echo " $elapsed < 30" | bc) -eq 1 ]; do
3031 # Get status and headers via proxy in one request
3132 proxy_response=$( curl -k -s -I " ${END_USER_BASE_URL} static/com/linkeddatahub/packages/skos/layout.xsl" )
3233 stylesheet_status=$( echo " $proxy_response " | head -1 | grep -oE ' [0-9]{3}' )
3334
34- if [ " $stylesheet_status " = " 200" ]; then
35+ iteration=$(( iteration + 1 ))
36+
37+ # Only break on success after at least 2 iterations (to see Age > 0)
38+ if [ " $stylesheet_status " = " 200" ] && [ $iteration -ge 2 ]; then
3539 break
3640 fi
3741
You can’t perform that action at this time.
0 commit comments