Skip to content

Commit

Permalink
bpo-38614: Increase asyncio test_communicate() timeout (GH-16995)
Browse files Browse the repository at this point in the history
Fix test_communicate() of test_asyncio.test_subprocess: use
support.LONG_TIMEOUT (5 minutes), instead of 1 minute.
  • Loading branch information
vstinner committed Oct 30, 2019
1 parent 6c3e66a commit a4ed6ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_asyncio/test_subprocess.py
Expand Up @@ -143,7 +143,7 @@ async def run(data):
return proc.returncode, stdout

task = run(b'some data')
task = asyncio.wait_for(task, 60.0)
task = asyncio.wait_for(task, support.LONG_TIMEOUT)
exitcode, stdout = self.loop.run_until_complete(task)
self.assertEqual(exitcode, 0)
self.assertEqual(stdout, b'some data')
Expand Down
@@ -0,0 +1,2 @@
Fix test_communicate() of test_asyncio.test_subprocess: use
``support.LONG_TIMEOUT`` (5 minutes), instead of just 1 minute.

0 comments on commit a4ed6ed

Please sign in to comment.