Skip to content

Commit

Permalink
test: update default value of pytest addoption (milvus-io#38836)
Browse files Browse the repository at this point in the history
/kind improvement

Signed-off-by: zhuwenxing <[email protected]>
  • Loading branch information
zhuwenxing authored Dec 30, 2024
1 parent dd81a13 commit e19b8f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/python_client/chaos/test_chaos_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ def reconnect(self):
if self.user and self.password:
connections.connect('default', host=self.host, port=self.port,
user=self.user,
password=self.password,
secure=True)
password=self.password)
else:
connections.connect('default', host=self.host, port=self.port)
if connections.has_connection("default") is False:
Expand Down
4 changes: 2 additions & 2 deletions tests/python_client/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def pytest_addoption(parser):
parser.addoption("--host", action="store", default="localhost", help="service's ip")
parser.addoption("--service", action="store", default="", help="service address")
parser.addoption("--port", action="store", default=19530, help="service's port")
parser.addoption("--user", action="store", default="root", help="user name for connection")
parser.addoption("--password", action="store", default="Milvus", help="password for connection")
parser.addoption("--user", action="store", default="", help="user name for connection")
parser.addoption("--password", action="store", default="", help="password for connection")
parser.addoption("--db_name", action="store", default="default", help="database name for connection")
parser.addoption("--secure", action="store", default=False, help="secure for connection")
parser.addoption("--milvus_ns", action="store", default="chaos-testing", help="milvus_ns")
Expand Down

0 comments on commit e19b8f2

Please sign in to comment.