From 7826530f515da1fcf2d587b591b9bede162feb02 Mon Sep 17 00:00:00 2001 From: Alex Petenchea Date: Tue, 9 Dec 2025 19:27:34 +0800 Subject: [PATCH] Do not add 8529 to the ports list, if another one is already specified --- tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 66e5a9d..295b946 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -39,7 +39,7 @@ def pytest_addoption(parser): "--host", action="store", default="127.0.0.1", help="ArangoDB host address" ) parser.addoption( - "--port", action="append", default=["8529"], help="ArangoDB coordinator ports" + "--port", action="append", default=None, help="ArangoDB coordinator ports" ) parser.addoption( "--root", action="store", default="root", help="ArangoDB root user" @@ -59,7 +59,7 @@ def pytest_addoption(parser): def pytest_configure(config): - ports = config.getoption("port") + ports = config.getoption("port") or ["8529"] hosts = [f"http://{config.getoption('host')}:{p}" for p in ports] url = hosts[0]