Skip to content

Commit 3518b47

Browse files
committed
TST: fixed unit test
1 parent 9e476ab commit 3518b47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyxrf/core/tests/test_map_processing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ def test_dask_client_create(tmpdir):
4747

4848
# Set the number of workers to some strange number (11 is unusual)
4949
# (pass another kwarg in addition to default)
50-
client = dask_client_create(n_workers=11)
50+
n_workers_requested = 3
51+
client = dask_client_create(n_workers=n_workers_requested)
5152
n_workers = len(client.scheduler_info()["workers"])
52-
assert n_workers == 11, "The number of workers was set incorrectly"
53+
assert n_workers == n_workers_requested, "The number of workers was set incorrectly"
5354
client.close()
5455

5556
assert not os.path.exists(dask_worker_space_path), "Temporary directory was created in the current directory"

0 commit comments

Comments
 (0)