mirror of https://github.com/milvus-io/milvus.git
[skip e2e]Fix connections (#15253)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/15255/head
parent
7f775096c5
commit
1a6c6be14f
tests/python_client/chaos
|
@ -106,12 +106,12 @@ class TestChaos(TestChaosBase):
|
||||||
@pytest.fixture(scope="function", autouse=True)
|
@pytest.fixture(scope="function", autouse=True)
|
||||||
def connection(self, host, port):
|
def connection(self, host, port):
|
||||||
connections.add_connection(default={"host": host, "port": port})
|
connections.add_connection(default={"host": host, "port": port})
|
||||||
conn = connections.connect(alias='default')
|
connections.connect(alias='default')
|
||||||
if conn is None:
|
|
||||||
|
if connections.has_connection("default") is False:
|
||||||
raise Exception("no connections")
|
raise Exception("no connections")
|
||||||
self.host = host
|
self.host = host
|
||||||
self.port = port
|
self.port = port
|
||||||
return conn
|
|
||||||
|
|
||||||
@pytest.fixture(scope="function", autouse=True)
|
@pytest.fixture(scope="function", autouse=True)
|
||||||
def init_health_checkers(self):
|
def init_health_checkers(self):
|
||||||
|
|
Loading…
Reference in New Issue