Skip to content

Commit

Permalink
hoping this works now
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinaecalderon committed Jul 24, 2024
1 parent 90391dd commit f0c1d02
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions e2e_tests/tests/experiment/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,14 @@ def test_max_concurrent_trials(name: str, searcher_cfg: str) -> None:
with tempfile.NamedTemporaryFile() as tf:
with open(tf.name, "w") as f:
util.yaml_safe_dump(config_obj, f)
experiment_id = exp.create_experiment(sess, tf.name, conf.fixtures_path("no_op"), [])
experiment_id = exp.create_experiment(sess, tf.name, conf.fixtures_path("no_op"))

exp.wait_for_experiment_state(
sess,
experiment_id,
bindings.experimentv1State.RUNNING,
)

try:
exp.wait_for_experiment_active_workload(sess, experiment_id)
trials = exp.wait_for_at_least_n_trials(sess, experiment_id, 1)
assert len(trials) == 1, trials
Expand All @@ -372,10 +377,9 @@ def test_max_concurrent_trials(name: str, searcher_cfg: str) -> None:
exp.pause_experiment(sess, experiment_id)

# Make sure that there were never more than 2 total trials created.
trials = exp.wait_for_at_least_n_trials(sess, experiment_id, 2)
trials = exp.wait_for_at_least_n_trials(sess, experiment_id, 2, 30)
assert len(trials) == 2, trials

finally:
exp.kill_single(sess, experiment_id)


Expand Down

0 comments on commit f0c1d02

Please sign in to comment.