bpo-33716, test_concurrent_futures: increase timeout (GH-7828) (GH-8264) · python/cpython@8df4770 (original) (raw)

Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ class ExecutorMixin:
79 79 def setUp(self):
80 80 super().setUp()
81 81
82 -self.t1 = time.time()
82 +self.t1 = time.monotonic()
83 83 try:
84 84 self.executor = self.executor_type(max_workers=self.worker_count)
85 85 except NotImplementedError as e:
@@ -90,10 +90,10 @@ def tearDown(self):
90 90 self.executor.shutdown(wait=True)
91 91 self.executor = None
92 92
93 -dt = time.time() - self.t1
93 +dt = time.monotonic() - self.t1
94 94 if test.support.verbose:
95 95 print("%.2fs" % dt, end=' ')
96 -self.assertLess(dt, 60, "synchronization issue: test lasted too long")
96 +self.assertLess(dt, 300, "synchronization issue: test lasted too long")
97 97
98 98 super().tearDown()
99 99