From bd16208992d21786295a420acce611a37d28e02d Mon Sep 17 00:00:00 2001 From: StephanDeHoop Date: Tue, 17 Dec 2024 14:21:07 +0100 Subject: [PATCH] Fix test --- tests/everest/test_simulator_cache.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/everest/test_simulator_cache.py b/tests/everest/test_simulator_cache.py index d3fc5819965..c00e4821c22 100644 --- a/tests/everest/test_simulator_cache.py +++ b/tests/everest/test_simulator_cache.py @@ -7,8 +7,6 @@ from ert.run_models.everest_run_model import EverestRunModel from everest.config import EverestConfig, SimulatorConfig -CONFIG_FILE = "config_advanced.yml" - def test_simulator_cache(copy_math_func_test_data_to_tmp): n_evals = 0 @@ -19,7 +17,7 @@ def new_call(*args): n_evals += (result.evaluation_ids >= 0).sum() return result - config = EverestConfig.load_file(CONFIG_FILE) + config = EverestConfig.load_file("config_minimal.yml") config.simulator = SimulatorConfig(enable_cache=True) run_model = EverestRunModel.create(config) @@ -38,7 +36,7 @@ def new_call(*args): run_model.run_experiment(evaluator_server_config) assert n_evals > 0 variables1 = list(run_model.result.controls.values()) - assert np.allclose(variables1, [0.1, 0, 0.4], atol=0.02) + assert np.allclose(variables1, [0.5, 0.5, 0.5], atol=0.02) # Now do another run, where the functions should come from the cache: n_evals = 0