diff options
-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]; |