Skip to content

Commit ae6971f

Browse files
committed
Reduce timeout for networkidle event in snapshot processing
1 parent 83479fb commit ae6971f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/processSnapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ export default async function processSnapshot(snapshot: Snapshot, ctx: Context):
621621
// adding extra timeout since domcontentloaded event is fired pretty quickly
622622
await new Promise(r => setTimeout(r, 1250));
623623
if (ctx.config.waitForTimeout) await page.waitForTimeout(ctx.config.waitForTimeout);
624-
await page.waitForLoadState("networkidle", { timeout: 30000 }).catch(() => { ctx.log.debug('networkidle event failed to fire within 30s') });
624+
await page.waitForLoadState("networkidle", { timeout: 10000 }).catch(() => { ctx.log.debug('networkidle event failed to fire within 10s') });
625625
navigated = true;
626626
ctx.log.debug(`Navigated to ${snapshot.url}`);
627627
} catch (error: any) {

0 commit comments

Comments
 (0)