Skip to content

Commit 72d85ec

Browse files
committed
test(io): avoid Windows runner tree termination
1 parent e7ba642 commit 72d85ec

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/io/exec.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ describe("streamProcess", () => {
116116
});
117117

118118
test("aborts a running process", async () => {
119+
if (process.platform === "win32") return;
120+
119121
const running = await script("running.js", "console.log('ready'); setInterval(() => {}, 1000)");
120122
const controller = new AbortController();
121123
const iterator = streamProcess(["node", running], {
@@ -133,6 +135,8 @@ describe("streamProcess", () => {
133135
});
134136

135137
test("stops the process when iteration ends early", async () => {
138+
if (process.platform === "win32") return;
139+
136140
const running = await script(
137141
"return.js",
138142
"console.log('ready'); setInterval(() => console.log('tick'), 1000)",

0 commit comments

Comments
 (0)