Merge pull request #257 from del-zhenwu/0.5.3

Update test case
This commit is contained in:
Jin Hai 2019-11-08 18:44:33 +08:00 committed by GitHub
commit 1e3251f974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,7 +273,8 @@ class TestConnect:
milvus = Milvus() milvus = Milvus()
uri_value = "tcp://%s:%s" % (args["ip"], args["port"]) uri_value = "tcp://%s:%s" % (args["ip"], args["port"])
with pytest.raises(Exception) as e: with pytest.raises(Exception) as e:
milvus.connect(host=args["ip"], port=19540, uri=uri_value, timeout=1) res = milvus.connect(host=args["ip"], port=39540, uri=uri_value, timeout=1)
logger.getLogger().info(res)
assert not milvus.connected() assert not milvus.connected()
def _test_add_vector_and_disconnect_concurrently(self): def _test_add_vector_and_disconnect_concurrently(self):