Skip to content

Commit b48c8d2

Browse files
committed
Fix _ensure_test_user catching only NextcloudError, not TimeoutError/OSError
1 parent 5413e0d commit b48c8d2

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/tests-integration.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,17 @@ jobs:
230230
docker exec $NC_CONTAINER su -s /bin/bash www-data -c "php occ config:system:set auth.bruteforce.protection.enabled --value=false --type=boolean"
231231
docker exec $NC_CONTAINER su -s /bin/bash www-data -c "php occ app:install spreed" || echo "spreed already installed"
232232
233+
- name: Warm up OCS API
234+
run: |
235+
for i in $(seq 1 10); do
236+
if curl -sf -u admin:admin -H "OCS-APIRequest: true" http://localhost:8080/ocs/v2.php/cloud/user > /dev/null 2>&1; then
237+
echo "OCS API is ready"
238+
break
239+
fi
240+
echo "Waiting for OCS API... ($i)"
241+
sleep 3
242+
done
243+
233244
- name: Run user permission tests
234245
env:
235246
NEXTCLOUD_URL: http://localhost:8080

0 commit comments

Comments
 (0)