Skip to content

Commit

Permalink
FIX avoid timeout 0 too hard on CI machine
Browse files Browse the repository at this point in the history
  • Loading branch information
tomMoral committed Feb 8, 2021
1 parent 28ddd11 commit 03c4e71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/_test_process_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ def _worker_rank(x):
return dict(pid=os.getpid(), rank=rank, world=world)

@pytest.mark.parametrize('max_workers', [1, 5, 13])
@pytest.mark.parametrize('timeout', [None, 0.01, 0])
@pytest.mark.parametrize('timeout', [None, 0.01])
def test_workers_rank(self, max_workers, timeout):
executor = self.executor_type(max_workers, timeout=timeout)
results = executor.map(self._worker_rank, range(max_workers * 5))
Expand Down
2 changes: 1 addition & 1 deletion tests/test_reusable_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ def _worker_rank(x):
rank, world = get_worker_rank()
return dict(pid=os.getpid(), rank=rank, world=world)

@pytest.mark.parametrize('timeout', [10, 0])
@pytest.mark.parametrize('timeout', [10, 0.01])
def test_workers_rank_resize(self, timeout):

executor = get_reusable_executor(max_workers=2, timeout=timeout)
Expand Down

0 comments on commit 03c4e71

Please sign in to comment.