Skip to content

Commit 0edeb91

Browse files
committed
Patch test_concurrent_futures.test_map_timeout to make it less flaky
1 parent f2af00c commit 0edeb91

File tree

1 file changed

+4
-2
lines changed
  • graalpython/lib-python/3/test/test_concurrent_futures

1 file changed

+4
-2
lines changed

graalpython/lib-python/3/test/test_concurrent_futures/executor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ def test_map_timeout(self):
5959
# GraalPy change: submit some dummy work first, so the next map call doesn't time out in the worker start up
6060
list(self.executor.map(time.sleep, [0]))
6161
try:
62+
# GraalPy change: larger timeout for CI flakiness
63+
# for i in self.executor.map(time.sleep, [0, 0, 6], timeout=5):
6264
for i in self.executor.map(time.sleep,
63-
[0, 0, 6],
64-
timeout=5):
65+
[0, 0, 8],
66+
timeout=3):
6567
results.append(i)
6668
except futures.TimeoutError:
6769
pass

0 commit comments

Comments
 (0)