mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-01 04:14:35 +00:00
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.
This commit is contained in:
parent
acaca2cc01
commit
583103f2dd
1 changed files with 3 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue