Skip to content

Commit

Permalink
Increase wait time for test_integration_local_driver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkwah committed Feb 1, 2024
1 parent 66412cf commit befee91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,10 @@ def try_queue_and_scheduler(request, monkeypatch):
# This might be a bug in python 3.8, but it does not occur locally.
_ = get_event_loop()

monkeypatch.setenv("ERT_FEATURE_SCHEDULER", "1" if should_enable_scheduler else "0")
monkeypatch.setattr(
FeatureToggling._conf["scheduler"], "_value", should_enable_scheduler
)
yield
monkeypatch.undo()


def pytest_collection_modifyitems(config, items):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def test_subprocesses_live_on_after_ert_dies(tmp_path, try_queue_and_sched
create_ert_config(tmp_path)

ert_process = subprocess.Popen(["ert", "test_run", "ert_config.ert"], cwd=tmp_path)
check_path_retry, check_path_max_retries = 0, 50
check_path_retry, check_path_max_retries = 0, 200
expected_path = Path(tmp_path, "test_out/realization-0/iter-0/forward_model_pid")
while not expected_path.exists() and check_path_retry < check_path_max_retries:
check_path_retry += 1
Expand Down

0 comments on commit befee91

Please sign in to comment.