We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e815e81 commit 34a132fCopy full SHA for 34a132f
1 file changed
http-tests/admin/packages/install-package-stylesheet.sh
@@ -26,12 +26,16 @@ purge_cache "$FRONTEND_VARNISH_SERVICE"
26
27
# Wait for package installation to complete (poll for stylesheet availability)
28
elapsed=0
29
+iteration=0
30
while [ $(echo "$elapsed < 30" | bc) -eq 1 ]; do
31
# Get status and headers via proxy in one request
32
proxy_response=$(curl -k -s -I "${END_USER_BASE_URL}static/com/linkeddatahub/packages/skos/layout.xsl")
33
stylesheet_status=$(echo "$proxy_response" | head -1 | grep -oE '[0-9]{3}')
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
39
break
40
fi
41
0 commit comments