From 6ec512e30257590f957f75990ff995227ffe8f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hartmut=20N=C3=B6renberg?= Date: Fri, 22 May 2026 08:06:56 +0200 Subject: [PATCH] test(cron): raise timeout for next/server cold-import on act runner The test takes >5s on the QNAP act runner because dynamic import of next/server has to transpile the module cold on first call. Raise the per-test timeout to 15s to give it headroom without changing the test logic. Co-Authored-By: Claude Sonnet 4.6 --- apps/web/src/app/api/cron/auth-anomaly-check/route.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/app/api/cron/auth-anomaly-check/route.test.ts b/apps/web/src/app/api/cron/auth-anomaly-check/route.test.ts index b93ae2a..c417e48 100644 --- a/apps/web/src/app/api/cron/auth-anomaly-check/route.test.ts +++ b/apps/web/src/app/api/cron/auth-anomaly-check/route.test.ts @@ -82,7 +82,7 @@ describe("GET /api/cron/auth-anomaly-check — cron secret enforcement", () => { const { GET } = await importRoute(); const res = await GET(makeRequest()); expect(res.status).toBe(401); - }); + }, 15_000); // next/server cold-import can take >5s on the act runner it("proceeds when verifyCronSecret returns null (allowed)", async () => { verifyCronSecretMock.mockReturnValue(null);