Skip to content

Commit f7a9962

Browse files
committed
Start a global server as LegacyGrpc in conftest.py
1 parent 2014592 commit f7a9962

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/conftest.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
running_docker = ansys.dpf.core.server_types.RUNNING_DOCKER.use_docker
5353
local_test_repo = False
5454

55+
# Detect if gatebin binaries are available
56+
IS_USING_GATEBIN = _try_use_gatebin()
57+
5558

5659
def _get_test_files_directory():
5760
if local_test_repo is False:
@@ -72,6 +75,10 @@ def _get_test_files_directory():
7275
)
7376

7477

78+
# Start a first global server to test for version
79+
global_server = core.start_local_server(config=core.AvailableServerConfigs.LegacyGrpcServer)
80+
81+
7582
@pytest.hookimpl()
7683
def pytest_sessionfinish(session, exitstatus):
7784
if os.name == "posix":
@@ -375,9 +382,6 @@ def return_ds(server=None):
375382
get_server_version(core._global_server()), "2.1"
376383
)
377384

378-
# Detect if gatebin binaries are available
379-
IS_USING_GATEBIN = _try_use_gatebin()
380-
381385

382386
def raises_for_servers_version_under(version):
383387
"""Launch the test normally if the server version is equal or higher than the "version"

0 commit comments

Comments
 (0)