From 916b0e66096064a2c36d7706d7f2226afbbd0522 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 2 Mar 2026 12:21:35 +0000 Subject: [PATCH] test(perf): tighten cron regression timeout constants --- src/cron/service.issue-regressions.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cron/service.issue-regressions.test.ts b/src/cron/service.issue-regressions.test.ts index 3bb2e106a22..083b6d19940 100644 --- a/src/cron/service.issue-regressions.test.ts +++ b/src/cron/service.issue-regressions.test.ts @@ -20,7 +20,7 @@ const noopLogger = { trace: vi.fn(), }; const TOP_OF_HOUR_STAGGER_MS = 5 * 60 * 1_000; -const FAST_TIMEOUT_SECONDS = 0.006; +const FAST_TIMEOUT_SECONDS = 0.004; type CronServiceOptions = ConstructorParameters[0]; function topOfHourOffsetMs(jobId: string) { @@ -1523,7 +1523,7 @@ describe("Cron issue regressions", () => { // Keep this short for suite speed while still separating expected timeout // from the 1/3-regression timeout. - const timeoutSeconds = 0.03; + const timeoutSeconds = 0.02; const cronJob = createIsolatedRegressionJob({ id: "timeout-fraction-29774", name: "timeout fraction regression",