From 79893fd94c61c4960a6a0301f50f1dae244c81b7 Mon Sep 17 00:00:00 2001 From: Peter Verveer Date: Wed, 18 Dec 2024 08:24:53 +0000 Subject: [PATCH] f --- tests/everest/test_everserver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/everest/test_everserver.py b/tests/everest/test_everserver.py index 3c501440eec..7dc110d8c25 100644 --- a/tests/everest/test_everserver.py +++ b/tests/everest/test_everserver.py @@ -5,9 +5,9 @@ from pathlib import Path from unittest.mock import patch -from ropt.enums import OptimizerExitCode from seba_sqlite.snapshot import SebaSnapshot +from ert.run_models.everest_run_model import EverestExitCode from everest.config import EverestConfig, ServerConfig from everest.detached import ServerStatus, everserver_status from everest.detached.jobs import everserver @@ -33,8 +33,8 @@ def fail_optimization(self, from_ropt=False): # shared_data (see set_shared_status() below). self._sim_callback(None) if from_ropt: - self._exit_code = OptimizerExitCode.TOO_FEW_REALIZATIONS - return OptimizerExitCode.TOO_FEW_REALIZATIONS + self._exit_code = EverestExitCode.TOO_FEW_REALIZATIONS + return EverestExitCode.TOO_FEW_REALIZATIONS raise Exception("Failed optimization")