Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
verveerpj committed Dec 18, 2024
1 parent f8b6e8b commit 9d69516
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/everest/test_everserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")

Expand Down

0 comments on commit 9d69516

Please sign in to comment.