Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit b1bbd543193a8f72939bd781b7a3b666868659ab
parent 1056eea4aa29082e0b7fd7ddb3bc1c3b31a41423
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed,  7 Oct 2026 17:50:15 -0400

fetch-window e2e: the batch case waits out the clip-window gap

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Meditor/e2e/fetch-window.spec.ts | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/editor/e2e/fetch-window.spec.ts b/editor/e2e/fetch-window.spec.ts @@ -51,6 +51,8 @@ async function invocations(): Promise<string> { async function pollJob( request: APIRequestContext, jobId: string, + // A batch sleeps the clip-window gap (30–45 s) between two fetches. + timeout = 30_000, ): Promise<Record<string, unknown>> { let last: Record<string, unknown> = {}; await expect @@ -63,7 +65,7 @@ async function pollJob( last = (await r.json()) as Record<string, unknown>; return last.status as string; }, - { timeout: 30_000 }, + { timeout }, ) .not.toMatch(/^(queued|running)$/); return last; @@ -369,7 +371,7 @@ test("a batch skips what is cached, survives one 403, and fetches the rest", asy expect(body.jobs).toHaveLength(1); expect(body.jobs[0]).toMatchObject({ platform: "youtube", items: 2 }); - const finished = await pollJob(request, body.jobId); + const finished = await pollJob(request, body.jobId, 90_000); expect(finished.status).toBe("failed"); expect(String(finished.error)).toMatch(/1 window\(s\) failed to fetch/); expect(String(finished.error)).toMatch(/1 fetched, 0 cached, 1 failed/);