From 583103f2dd087bbbc72f29f48592ad486acffe54 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Mon, 31 Aug 2026 15:35:32 -0400 Subject: [PATCH] test(core): limit process group survival check to POSIX Node assigns non-detached Windows children to a kill-on-parent-exit job, so the held-stdio mcp fixture cannot assert POSIX process-group survival there. Keep detached descendant, capture deadline, and success-policy coverage enabled on Windows. --- packages/core/test/effect/cross-spawn-spawner.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/test/effect/cross-spawn-spawner.test.ts b/packages/core/test/effect/cross-spawn-spawner.test.ts index 8f6614a308c..ff035fb1bed 100644 --- a/packages/core/test/effect/cross-spawn-spawner.test.ts +++ b/packages/core/test/effect/cross-spawn-spawner.test.ts @@ -275,7 +275,9 @@ describe("cross-spawn spawner", () => { }).pipe(Effect.timeout("3 seconds")), ) - fx.live( + // Node puts non-detached Windows children in a kill-on-parent-exit job; this guards POSIX group cleanup. + const groupTest = process.platform === "win32" ? fx.live.skip : fx.live + groupTest( "preserves successful descendants when an exit-only scope closes", Effect.gen(function* () { const tmp = yield* Effect.acquireRelease(