Skip to content

Commit

Permalink
[tests][dask] reduce number of collisions tests (#4501)
Browse files Browse the repository at this point in the history
* reduce number of collisions tests

* measure tests execution time

* measure tests execution time in bdist task

* remove durations in bdist task
  • Loading branch information
jmoralez authored Aug 9, 2021
1 parent 2f37642 commit cfe8eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python_package_test/test_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def test_assign_open_ports_to_workers(cluster):
workers = client.scheduler_info()['workers'].keys()
n_workers = len(workers)
host_to_workers = lgb.dask._group_workers_by_host(workers)
for _ in range(1_000):
for _ in range(25):
worker_address_to_port = lgb.dask._assign_open_ports_to_workers(client, host_to_workers)
found_ports = worker_address_to_port.values()
assert len(found_ports) == n_workers
Expand Down

0 comments on commit cfe8eb1

Please sign in to comment.