Skip to content

Commit

Permalink
Await everest start_server coroutine in test_everest_output
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSava committed Dec 4, 2024
1 parent 13fdda2 commit 35d0610
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/everest/test_everest_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_that_one_experiment_creates_one_ensemble_per_batch(


@pytest.mark.integration_test
def test_everest_output(copy_mocked_test_data_to_tmp):
async def test_everest_output(copy_mocked_test_data_to_tmp):
config_folder = os.getcwd()
config = EverestConfig.load_file("mocked_test_case.yml")
everest_output_dir = config.output_dir
Expand Down Expand Up @@ -75,7 +75,7 @@ def useless_cb(*args, **kwargs):
assert "storage" not in initial_folders
assert DETACHED_NODE_DIR not in initial_folders
makedirs_if_needed(config.output_dir, roll_if_exists=True)
start_server(config)
await start_server(config)

(path, folders, files) = next(os.walk(config_folder))
# Check we are looking at the config folder
Expand All @@ -92,7 +92,7 @@ def useless_cb(*args, **kwargs):
# Check storage folder no longer created in the config folder
assert "storage" not in final_folders
makedirs_if_needed(config.output_dir, roll_if_exists=True)
start_server(config)
await start_server(config)
final_files = os.listdir(config_folder)

# verify two everest_output dirs present
Expand Down

0 comments on commit 35d0610

Please sign in to comment.