diff options
author | Mo <modisemorebodi@gmail.com> | 2020-11-08 12:50:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-08 11:50:27 +0100 |
commit | ccc95bc9b926dc2340302d9afc0ab813e1dc887d (patch) | |
tree | cd61ffebd5f046b5efb4cf12882093a220d06cae | |
parent | e9edc05bed299a3e97cf9a8136e6d790f5fc3f14 (diff) |
refactor: rewrite permission_test to not depend on Python (#8291)
-rw-r--r-- | cli/tests/permission_test.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cli/tests/permission_test.ts b/cli/tests/permission_test.ts index f42983630..420dc05ca 100644 --- a/cli/tests/permission_test.ts +++ b/cli/tests/permission_test.ts @@ -16,13 +16,10 @@ const test: { [key: string]: (...args: any[]) => void | Promise<void> } = { Deno.listen({ transport: "tcp", port: 4541 }); }, runRequired(): void { - Deno.run({ - cmd: [ - "python", - "-c", - "import sys; sys.stdout.write('hello'); sys.stdout.flush()", - ], + const p = Deno.run({ + cmd: ["printf", "hello"], }); + p.close(); }, }; |