[skip e2e]Fix connection (#18024)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/18007/head
zhuwenxing 2022-07-03 12:20:18 +08:00 committed by GitHub
parent 6954a5ba3e
commit 5a8da0e921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -70,9 +70,7 @@ def get_chaos_yamls():
def reconnect(connections, alias='default'):
"""trying to connect by connection alias"""
res = connections.get_connection_addr(alias)
connections.remove_connection(alias)
return connections.connect(alias, host=res["host"], port=res["port"])
return connections.connect(alias)
def assert_statistic(checkers, expectations={}):