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