test(cron): relax concurrent start race timeout

This commit is contained in:
Peter Steinberger
2026-03-08 13:43:32 +00:00
parent f66cc886d3
commit 386b811ddd

View File

@@ -1463,9 +1463,12 @@ describe("Cron issue regressions", () => {
});
const timerPromise = onTimer(state);
// Full-suite parallel runs can briefly delay both workers from starting
// even when `maxConcurrentRuns` is honored, so keep the assertion focused
// on concurrency rather than a sub-100ms scheduler race.
const startTimeout = setTimeout(() => {
bothRunsStarted.reject(new Error("timed out waiting for concurrent job starts"));
}, 90);
}, 250);
try {
await bothRunsStarted.promise;
} finally {