@@ -15,15 +15,15 @@ function processAlive(pid: number): boolean {
1515}
1616
1717// These probes are `bun -e` one-liners, so they never import project modules
18- // and finish in seconds. The tick test keeps a ~1.5s stall window: under the
18+ // and finish in seconds. The tick test keeps a ~0.9s stall window: under the
1919// `--parallel` load this runner exists to enable, a delayed output tick can
2020// look like a stall against a tighter window, so the window keeps several
2121// ticks of scheduling headroom while a broken never-resetting timer still
2222// fires mid-run (the tick test's total runtime exceeds the window). The
2323// remaining tests drive children that never emit output, so their stall is
2424// declared deterministically on the watchdog's first tick; they use a short
2525// window so the suite does not pay the tick test's headroom in wall clock.
26- const TEST_STALL_MS = 1_500 ;
26+ const TEST_STALL_MS = 900 ;
2727const SILENT_CHILD_STALL_MS = 400 ;
2828
2929describe ( "runWithWatchdog" , ( ) => {
@@ -56,13 +56,13 @@ describe("runWithWatchdog", () => {
5656 } ) ;
5757
5858 test ( "output resets the stall timer" , async ( ) => {
59- // Prints every 250ms for ~2.5s against a 1.5s stall window: a broken
59+ // Prints every 150ms for ~1.2s against a 0.9s stall window: a broken
6060 // timer that never reset would fire mid-run.
6161 const result = await runWithWatchdog ( {
6262 command : process . execPath ,
6363 args : [
6464 "-e" ,
65- "for (let i = 0; i < 10 ; i++) { console.log('tick', i); await new Promise(r => setTimeout(r, 200 )); }" ,
65+ "for (let i = 0; i < 8 ; i++) { console.log('tick', i); await new Promise(r => setTimeout(r, 150 )); }" ,
6666 ] ,
6767 stallMs : TEST_STALL_MS ,
6868 } ) ;
@@ -104,7 +104,7 @@ describe("runWithWatchdog", () => {
104104 command : process . execPath ,
105105 args : [
106106 "-e" ,
107- 'process.on("SIGTERM", () => {}); setTimeout(() => process.exit(3), 1_500 );' ,
107+ 'process.on("SIGTERM", () => {}); setTimeout(() => process.exit(3), 800 );' ,
108108 ] ,
109109 stallMs : SILENT_CHILD_STALL_MS ,
110110 onStall : ( ) => {
0 commit comments