summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/no_prompt.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/no_prompt.ts')
-rw-r--r--cli/tests/testdata/no_prompt.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/tests/testdata/no_prompt.ts b/cli/tests/testdata/no_prompt.ts
index f3d503f63..7f9750995 100644
--- a/cli/tests/testdata/no_prompt.ts
+++ b/cli/tests/testdata/no_prompt.ts
@@ -1,7 +1,10 @@
new Worker("data:,setTimeout(() => Deno.exit(2), 200)", { type: "module" });
try {
- await Deno.run({ cmd: ["ps"] });
+ await Deno.spawn("ps", {
+ stdout: "inherit",
+ stderr: "inherit",
+ });
} catch {
Deno.exit(0);
}