We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b06285 commit 8df4770Copy full SHA for 8df4770
Lib/test/test_concurrent_futures.py
@@ -79,7 +79,7 @@ class ExecutorMixin:
79
def setUp(self):
80
super().setUp()
81
82
- self.t1 = time.time()
+ self.t1 = time.monotonic()
83
try:
84
self.executor = self.executor_type(max_workers=self.worker_count)
85
except NotImplementedError as e:
@@ -90,10 +90,10 @@ def tearDown(self):
90
self.executor.shutdown(wait=True)
91
self.executor = None
92
93
- dt = time.time() - self.t1
+ dt = time.monotonic() - self.t1
94
if test.support.verbose:
95
print("%.2fs" % dt, end=' ')
96
- self.assertLess(dt, 60, "synchronization issue: test lasted too long")
+ self.assertLess(dt, 300, "synchronization issue: test lasted too long")
97
98
super().tearDown()
99
0 commit comments