Fix mishards probe test bug (#4744)

Signed-off-by: yinghao.zou <yinghao.zou@zilliz.com>
pull/4752/head
BossZou 2021-02-25 19:15:23 +08:00 committed by GitHub
parent 0f7c0a8662
commit e0562101f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 16 deletions

View File

@ -4,6 +4,7 @@ Please mark all change in change log and use the issue from GitHub
# Milvus 1.0.0-beta (TBD)
## Bug
- \#4739 Fix mishards probe test problem
## Feature
- \#3977 Support logging to stdout

View File

@ -6,15 +6,10 @@ ENDC = ''
def test(host='127.0.0.1', port=19531):
client = Milvus()
try:
status = client.connect(host=host, port=port)
if status.OK():
print('{}Pass: Connected{}'.format(GREEN, ENDC))
return 0
else:
print('{}Error: {}{}'.format(RED, status, ENDC))
return 1
client = Milvus(host=host, port=port)
print('{}Pass: Connected{}'.format(GREEN, ENDC))
return 0
except Exception as exc:
print('{}Error: {}{}'.format(RED, exc, ENDC))
return 1

View File

@ -6,15 +6,10 @@ ENDC = ''
def test(host='127.0.0.1', port=19531):
client = Milvus()
try:
status = client.connect(host=host, port=port)
if status.OK():
print('{}Pass: Connected{}'.format(GREEN, ENDC))
return 0
else:
print('{}Error: {}{}'.format(RED, status, ENDC))
return 1
client = Milvus()
print('{}Pass: Connected{}'.format(GREEN, ENDC))
return 0
except Exception as exc:
print('{}Error: {}{}'.format(RED, exc, ENDC))
return 1