Skip to content

Commit bbfce3d

Browse files
committed
fix(BatchCluster): adjust timeout for Windows CI to accommodate process spawn overhead
1 parent d85904f commit bbfce3d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/BatchCluster.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,11 +456,11 @@ describe("BatchCluster", function () {
456456
opts.maxTasksPerProcess +
457457
" before recycling",
458458
async function () {
459-
// Set timeout based on spawn time measurement to handle slow hosts
459+
// Windows CI is consistently 2-10x slower due to process spawn overhead
460460
// This test does extensive work with 60% failure rate and process recycling
461-
const baselineSpawnMs = await measureSpawnTime();
462-
const timeoutMs = Math.max(30000, baselineSpawnMs * 500);
463-
this.timeout(timeoutMs);
461+
if (isWin && isCI) {
462+
this.timeout(60000); // Observed: can take 45s+, give 60s headroom
463+
}
464464
// make sure we hit an EUNLUCKY:
465465
setFailRatePct(60);
466466
let expectedResultCount = 0;

0 commit comments

Comments
 (0)