fix: reduce Playwright timeout 180s→60s, increase poll limit 15→25min

This commit is contained in:
Benjamin Admin
2026-05-16 00:47:28 +02:00
parent 3dbf3aa34a
commit d45e08e25f
2 changed files with 6 additions and 6 deletions
@@ -202,9 +202,9 @@ export function ComplianceCheckTab() {
setActiveCheckId(check_id)
localStorage.setItem(STORAGE_KEY_CHECK_ID, check_id)
// Poll for results (max 15 min = 300 polls x 3s)
// Poll for results (max 25 min = 500 polls x 3s)
let attempts = 0
while (attempts < 300) {
while (attempts < 500) {
await new Promise(r => setTimeout(r, 3000))
const pollRes = await fetch(`/api/sdk/v1/agent/compliance-check?check_id=${check_id}`)
if (!pollRes.ok) { attempts++; continue }
@@ -235,7 +235,7 @@ export function ComplianceCheckTab() {
}
attempts++
}
if (attempts >= 300) {
if (attempts >= 500) {
localStorage.removeItem(STORAGE_KEY_CHECK_ID); setActiveCheckId('')
throw new Error('Zeitlimit ueberschritten (15 Min)')
}