mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[3.11] gh-110662: multiprocessing test_async_timeout() increase timeout (GH-110663) (#110675)
gh-110662: multiprocessing test_async_timeout() increase timeout (GH-110663)
Increase timeout from 1 second to 30 seconds, if not longer. The
important part is that apply_async() takes longer than TIMEOUT2.
(cherry picked from commit 790ecf6302
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
8ca7a230e7
commit
c6d5628be9
1 changed files with 1 additions and 1 deletions
|
@ -2577,7 +2577,7 @@ class _TestPool(BaseTestCase):
|
|||
self.assertTimingAlmostEqual(get.elapsed, TIMEOUT1)
|
||||
|
||||
def test_async_timeout(self):
|
||||
res = self.pool.apply_async(sqr, (6, TIMEOUT2 + 1.0))
|
||||
res = self.pool.apply_async(sqr, (6, TIMEOUT2 + support.SHORT_TIMEOUT))
|
||||
get = TimingWrapper(res.get)
|
||||
self.assertRaises(multiprocessing.TimeoutError, get, timeout=TIMEOUT2)
|
||||
self.assertTimingAlmostEqual(get.elapsed, TIMEOUT2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue