@@ -85,6 +85,7 @@ const ABORT_SETTLE_MS = process.platform === "win32" ? 200 : 0;
|
85 | 85 | const POLL_INTERVAL_MS = process.platform === "win32" ? 15 : 5; |
86 | 86 | const FINISHED_WAIT_TIMEOUT_MS = process.platform === "win32" ? 8_000 : 1_000; |
87 | 87 | const BACKGROUND_TIMEOUT_SEC = process.platform === "win32" ? 0.2 : 0.02; |
| 88 | +const YIELDED_BACKGROUND_TIMEOUT_SEC = process.platform === "win32" ? 0.4 : 0.2; |
88 | 89 | const TEST_EXEC_DEFAULTS = { |
89 | 90 | host: "gateway" as const, |
90 | 91 | security: "full" as const, |
@@ -272,24 +273,24 @@ test("yielded background exec still times out", async () => {
|
272 | 273 | executeParams: { |
273 | 274 | command: BACKGROUND_HOLD_CMD, |
274 | 275 | yieldMs: 5, |
275 | | -timeout: BACKGROUND_TIMEOUT_SEC, |
| 276 | +timeout: YIELDED_BACKGROUND_TIMEOUT_SEC, |
276 | 277 | }, |
277 | | -expectedTimeoutSec: BACKGROUND_TIMEOUT_SEC, |
| 278 | +expectedTimeoutSec: YIELDED_BACKGROUND_TIMEOUT_SEC, |
278 | 279 | }); |
279 | 280 | }); |
280 | 281 | |
281 | 282 | test("yieldMs exec without explicit timeout applies default timeout", async () => { |
282 | 283 | const tool = createTestExecTool({ |
283 | 284 | allowBackground: true, |
284 | 285 | backgroundMs: 10, |
285 | | -timeoutSec: BACKGROUND_TIMEOUT_SEC, |
| 286 | +timeoutSec: YIELDED_BACKGROUND_TIMEOUT_SEC, |
286 | 287 | }); |
287 | 288 | await expectBackgroundSessionTimesOut({ |
288 | 289 | tool, |
289 | 290 | executeParams: { |
290 | 291 | command: BACKGROUND_HOLD_CMD, |
291 | 292 | yieldMs: 5, |
292 | 293 | }, |
293 | | -expectedTimeoutSec: BACKGROUND_TIMEOUT_SEC, |
| 294 | +expectedTimeoutSec: YIELDED_BACKGROUND_TIMEOUT_SEC, |
294 | 295 | }); |
295 | 296 | }); |