Skip to content

Commit

Permalink
Fix R streamlined test that uses trials key instead of total trials
Browse files Browse the repository at this point in the history
  • Loading branch information
madeline-scyphers committed Jul 10, 2023
1 parent 942aaa5 commit 58340fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration_tests/test_dunder_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def test_calling_command_line_r_test_scripts(r_scripts_run):
scheduler = r_scripts_run
wrapper = scheduler.experiment.runner.wrapper
config = wrapper.config
total_trials = config["optimization_options"]["scheduler"]["total_trials"]
total_trials = config["optimization_options"].get("scheduler", {}).get("total_trials") or config[
"optimization_options"
].get("trials")
assert len(scheduler.experiment.trials) == total_trials


Expand Down

1 comment on commit 58340fe

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.