mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
bpo-36888, test_multiprocessing: Increase test_parent_process timeout (GH-14286)
(cherry picked from commit 594d9b9f58
)
Co-authored-by: Pierre Glaser <pierreglaser@msn.com>
This commit is contained in:
parent
c6e32824cf
commit
4adc38e794
1 changed files with 3 additions and 3 deletions
|
@ -301,7 +301,7 @@ class _TestProcess(BaseTestCase):
|
|||
target=self._test_create_grandchild_process, args=(wconn, ))
|
||||
p.start()
|
||||
|
||||
if not rconn.poll(timeout=5):
|
||||
if not rconn.poll(timeout=60):
|
||||
raise AssertionError("Could not communicate with child process")
|
||||
parent_process_status = rconn.recv()
|
||||
self.assertEqual(parent_process_status, "alive")
|
||||
|
@ -309,7 +309,7 @@ class _TestProcess(BaseTestCase):
|
|||
p.terminate()
|
||||
p.join()
|
||||
|
||||
if not rconn.poll(timeout=5):
|
||||
if not rconn.poll(timeout=60):
|
||||
raise AssertionError("Could not communicate with child process")
|
||||
parent_process_status = rconn.recv()
|
||||
self.assertEqual(parent_process_status, "not alive")
|
||||
|
@ -318,7 +318,7 @@ class _TestProcess(BaseTestCase):
|
|||
def _test_create_grandchild_process(cls, wconn):
|
||||
p = cls.Process(target=cls._test_report_parent_status, args=(wconn, ))
|
||||
p.start()
|
||||
time.sleep(100)
|
||||
time.sleep(300)
|
||||
|
||||
@classmethod
|
||||
def _test_report_parent_status(cls, wconn):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue