Skip to content

Commit

Permalink
Fix failing sweep runner image wrapper MPI test
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefmoazzam committed Sep 10, 2024
1 parent 92ec62e commit d23f2b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/sweep_runner/test_param_sweep_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,8 @@ def test_execute_sweep_stage_two_procs_image_wrapper_gets_correct_offset(
# of the process
# - the before and after sweep method wrappers don't have any parameter values being set
expected_offset = 0 if global_comm.rank == 0 else len(SWEEP_VALUES) // 2
after_sweep_wrapper_setitem_spy.assert_called_once_with("offset", expected_offset)
after_sweep_wrapper_setitem_spy.assert_has_calls(
[mock.call("offset", expected_offset)]
)
before_sweep_wrapper_setitem_spy.assert_not_called()
sweep_wrapper_setitem_spy.assert_not_called()

0 comments on commit d23f2b3

Please sign in to comment.