Skip to content

Commit

Permalink
Avoid reserved ports in test_adaptive_localization
Browse files Browse the repository at this point in the history
The default for localhost is 49152-51819
  • Loading branch information
eivindjahren committed Oct 4, 2024
1 parent d1c3a88 commit 810bda7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/ert/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def run_cli(args: Namespace, plugin_manager: Optional[ErtPluginManager] = None)
raise ErtCliError(f"{args.mode} was not valid, failed with: {e}") from e

if args.port_range is None and model.queue_system == QueueSystem.LOCAL:
# This is within the range for ephemeral ports as defined by
# most unix flavors https://en.wikipedia.org/wiki/Ephemeral_port
args.port_range = range(49152, 51819)

evaluator_server_config = EvaluatorServerConfig(custom_port_range=args.port_range)
Expand Down
2 changes: 0 additions & 2 deletions tests/ert/ui_tests/cli/analysis/test_adaptive_localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ def run_cli_ES_with_case(poly_config):
"--realizations",
"1-50",
poly_config,
"--port-range",
"1024-65535",
"--experiment-name",
"test-experiment",
)
Expand Down

0 comments on commit 810bda7

Please sign in to comment.