diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-01-13 12:09:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-13 12:09:45 -0500 |
commit | 8ae178e9ce90cfabd19844ff755e5e68d2126a35 (patch) | |
tree | c01caab3a843d5767ae2cc621f0f66ad5944504d | |
parent | 3b59323e428631b78397412bbfb5e39b23b009df (diff) |
Fix permission_prompt_test (#1509)
-rw-r--r-- | tools/permission_prompt_test.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/permission_prompt_test.ts b/tools/permission_prompt_test.ts index 5165e008f..e5c5be3b4 100644 --- a/tools/permission_prompt_test.ts +++ b/tools/permission_prompt_test.ts @@ -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]; |