Skip to content

Commit

Permalink
harden test a little
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Jan 29, 2025
1 parent faf0a9a commit ecd1741
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_lumi_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ def count_lumi(runs, lumis):
total_lumi += my_lumidata.get_lumi(my_lumilist)
return total_lumi

noclient_output = dask.compute(count_lumi(runs, lumis))[0]

with Client() as _:
output = count_lumi(runs, lumis)
dask.compute(output)[0]
client_output = dask.compute(output)[0]

assert noclient_output == client_output

0 comments on commit ecd1741

Please sign in to comment.