mirror of https://github.com/milvus-io/milvus.git
Fix mishards probe test bug (#4744)
Signed-off-by: yinghao.zou <yinghao.zou@zilliz.com>pull/4752/head
parent
0f7c0a8662
commit
e0562101f5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue