Skip to content

Commit

Permalink
Fix permission_prompt_test (denoland#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jan 13, 2019
1 parent 3b59323 commit 8ae178e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tools/permission_prompt_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ const test = {
needsNet: () => {
listen("tcp", "127.0.0.1:4540");
},
needsRun: () => {
run({ args: ["python", "-c", "import sys; sys.stdout.write('hello')"] });
needsRun: async () => {
const process = run({
args: [
"python",
"-c",
"import sys; sys.stdout.write('hello'); sys.stdout.flush()"
]
});
await process.status();
}
}[name];

Expand Down

0 comments on commit 8ae178e

Please sign in to comment.