mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-38614: Increase asyncio test_communicate() timeout (GH-16995)
Fix test_communicate() of test_asyncio.test_subprocess: use support.LONG_TIMEOUT (5 minutes), instead of 1 minute.
This commit is contained in:
parent
6c3e66a34b
commit
a4ed6ed9f3
2 changed files with 3 additions and 1 deletions
|
@ -143,7 +143,7 @@ class SubprocessMixin:
|
|||
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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue