Skip to content

Commit e37d805

Browse files
committed
test(opencode): terminate MCP process probe
1 parent 2a9dac6 commit e37d805

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/opencode/test/mcp/fixtures/process-tree-probe.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@ const result = await Effect.runPromise(
8080
).pipe(Effect.scoped, Effect.provide(MCP.defaultLayer)),
8181
)
8282

83-
console.log(JSON.stringify(result))
84-
if (!result.ok || !result.rootDead || !result.childDead) process.exit(1)
83+
await Bun.write(Bun.stdout, `${JSON.stringify(result)}\n`)
84+
process.exit(result.ok && result.rootDead && result.childDead ? 0 : 1)

0 commit comments

Comments
 (0)