[skip ci]Simpify lines of code (#10576)

Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
pull/10602/head
yanliang567 2021-10-25 20:09:50 +08:00 committed by GitHub
parent ea88e42243
commit 5387b9a20b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -46,10 +46,10 @@ class TestSimdCompatibility:
healthy = milvus_op.wait_for_healthy(release_name, namespace)
log.info(f"milvus healthy: {healthy}")
assert healthy
endpoint = milvus_op.endpoint(release_name, namespace)
endpoint = milvus_op.endpoint(release_name, namespace).split(':')
log.info(f"milvus endpoint: {endpoint}")
host = endpoint.split(':')[0]
port = endpoint.split(':')[1]
host = endpoint[0]
port = endpoint[1]
conn = connections.connect(simd, host=host, port=port)
assert conn is not None
mil = MilvusSys(alias=simd)