Fix permission_prompt_test (#1509)

This commit is contained in:
Ryan Dahl 2019-01-13 12:09:45 -05:00 committed by GitHub
parent 3b59323e42
commit 8ae178e9ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];