@@ -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 |
|