mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 08:09:51 +00:00
test: fix cross-spawn stderr race on Windows CI (#23808)
This commit is contained in:
parent
894e638914
commit
20756e0ee4
1 changed files with 4 additions and 1 deletions
|
|
@ -169,7 +169,10 @@ describe("cross-spawn spawner", () => {
|
|||
'process.stderr.write("stderr\\n", done)',
|
||||
].join("\n"),
|
||||
)
|
||||
const [stdout, stderr] = yield* Effect.all([decodeByteStream(handle.stdout), decodeByteStream(handle.stderr)])
|
||||
const [stdout, stderr] = yield* Effect.all(
|
||||
[decodeByteStream(handle.stdout), decodeByteStream(handle.stderr)],
|
||||
{ concurrency: 2 },
|
||||
)
|
||||
expect(stdout).toBe("stdout")
|
||||
expect(stderr).toBe("stderr")
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue