From 8ae178e9ce90cfabd19844ff755e5e68d2126a35 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 13 Jan 2019 12:09:45 -0500 Subject: [PATCH] Fix permission_prompt_test (#1509) --- tools/permission_prompt_test.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/permission_prompt_test.ts b/tools/permission_prompt_test.ts index 5165e008f4..e5c5be3b4d 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];