diff options
Diffstat (limited to 'cli/tests/testdata/permission_test.ts')
-rw-r--r-- | cli/tests/testdata/permission_test.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cli/tests/testdata/permission_test.ts b/cli/tests/testdata/permission_test.ts index a3a38f2a0..4b186a0a2 100644 --- a/cli/tests/testdata/permission_test.ts +++ b/cli/tests/testdata/permission_test.ts @@ -15,13 +15,10 @@ const test: { [key: string]: (...args: any[]) => void | Promise<void> } = { netRequired() { Deno.listen({ transport: "tcp", port: 4541 }); }, - runRequired() { - const p = Deno.run({ - cmd: Deno.build.os === "windows" - ? ["cmd.exe", "/c", "echo hello"] - : ["printf", "hello"], + async runRequired() { + await Deno.spawn(Deno.build.os === "windows" ? "cmd.exe" : "printf", { + args: Deno.build.os === "windows" ? ["/c", "echo hello"] : ["hello"], }); - p.close(); }, }; |