Attempt to fix test_stdin_broken_pipe on Travis (#7210)

This commit is contained in:
Yury Selivanov 2018-05-29 13:40:47 -04:00 committed by GitHub
parent c4653c9bf1
commit 4fadf0c639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -228,6 +228,7 @@ class SubprocessMixin:
proc, large_data = self.prepare_broken_pipe_test()
async def write_stdin(proc, data):
await asyncio.sleep(0.5, loop=self.loop)
proc.stdin.write(data)
await proc.stdin.drain()