fix(engine): avoid polynomial capture failure regex

This commit is contained in:
James
2026-07-17 05:22:53 -04:00
parent acb3d81b99
commit 5da9f7ab3d
3 changed files with 32 additions and 1 deletions
@@ -1513,6 +1513,13 @@ describe("adaptive missing-frame retry helpers", () => {
new Error("[Parallel] Capture failed: Worker 1: HeadlessExperimental.beginFrame timed out"),
),
).toBe(true);
expect(
isRecoverableParallelCaptureError(
new Error(
"[Parallel] Capture failed: Worker 0: drawElement worker encode timed out (frame 42)",
),
),
).toBe(true);
expect(isRecoverableParallelCaptureError(new Error("Encoding failed: ffmpeg exited"))).toBe(
false,
);