Skip to content

Commit

Permalink
fixup: remove more unnecessary arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
JHolba committed Feb 6, 2025
1 parent d046705 commit a1bc1be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async def test_new_connections_are_no_problem_when_evaluator_is_closing_down(

async def new_connection():
await evaluator._server_done.wait()
async with Monitor(evaluator._config.get_uri(), None):
async with Monitor(evaluator._config.get_uri()):
pass

new_connection_task = asyncio.create_task(new_connection())
Expand Down
14 changes: 2 additions & 12 deletions tests/ert/unit_tests/ensemble_evaluator/test_ensemble_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ async def test_run_legacy_ensemble(
tmpdir, make_ensemble, monkeypatch, evaluator_to_use
):
num_reals = 2
port_range = (1024, 65535)
with tmpdir.as_cwd():
ensemble = make_ensemble(monkeypatch, tmpdir, num_reals, 2)
config = EvaluatorServerConfig(
port_range=port_range,
host="127.0.0.1",
use_token=False,
)
config = EvaluatorServerConfig(use_token=False)
async with (
evaluator_to_use(ensemble, config) as evaluator,
Monitor(config.get_uri(), config.token) as monitor,
Expand Down Expand Up @@ -70,14 +65,9 @@ async def test_run_and_cancel_legacy_ensemble(
tmpdir, make_ensemble, monkeypatch, evaluator_to_use
):
num_reals = 2
port_range = (1024, 65535)
with tmpdir.as_cwd():
ensemble = make_ensemble(monkeypatch, tmpdir, num_reals, 2, job_sleep=40)
config = EvaluatorServerConfig(
port_range=port_range,
host="127.0.0.1",
use_token=False,
)
config = EvaluatorServerConfig(use_token=False)

terminated_event = False

Expand Down

0 comments on commit a1bc1be

Please sign in to comment.