Skip to content

Commit 7826530

Browse files
committed
Do not add 8529 to the ports list, if another one is already specified
1 parent 414a4de commit 7826530

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def pytest_addoption(parser):
3939
"--host", action="store", default="127.0.0.1", help="ArangoDB host address"
4040
)
4141
parser.addoption(
42-
"--port", action="append", default=["8529"], help="ArangoDB coordinator ports"
42+
"--port", action="append", default=None, help="ArangoDB coordinator ports"
4343
)
4444
parser.addoption(
4545
"--root", action="store", default="root", help="ArangoDB root user"
@@ -59,7 +59,7 @@ def pytest_addoption(parser):
5959

6060

6161
def pytest_configure(config):
62-
ports = config.getoption("port")
62+
ports = config.getoption("port") or ["8529"]
6363
hosts = [f"http://{config.getoption('host')}:{p}" for p in ports]
6464
url = hosts[0]
6565

0 commit comments

Comments
 (0)