From ec999163e76cb4039ec524da793701f18b051313 Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Fri, 26 Jan 2024 13:54:34 +0000 Subject: [PATCH] Hardcode non-standard ports to reduce platform-dependence --- tests/integration/conftest.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 48fa3db9..3a4dbbab 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -53,13 +53,17 @@ def _get_random_name(length=6): @pytest.fixture(scope="session") def slurm_ssh_port(): """The exposed local port for SSH connections to the Slurm container.""" - yield _get_free_port() + # @ml-evs: For now just hard code uncommon ports to avoid platform-specific issues + # yield _get_free_port() + yield 2223 @pytest.fixture(scope="session") def db_port(): """The exposed local port for connections to the MongoDB stores.""" - yield _get_free_port() + # @ml-evs: For now just hard code uncommon ports to avoid platform-specific issues + # yield _get_free_port() + yield 27019 @pytest.fixture(scope="session")