mirror of https://github.com/milvus-io/milvus.git
update pymilvus version and some cases (#28066)
Signed-off-by: nico <cheng.yuan@zilliz.com>pull/28095/head
parent
873b29e226
commit
d39ffba5d1
|
@ -12,7 +12,7 @@ allure-pytest==2.7.0
|
|||
pytest-print==0.2.1
|
||||
pytest-level==0.1.1
|
||||
pytest-xdist==2.5.0
|
||||
pymilvus==2.3.1.post1.dev22
|
||||
pymilvus==2.3.2.post1.dev1
|
||||
pytest-rerunfailures==9.1.1
|
||||
git+https://github.com/Projectplace/pytest-tags
|
||||
ndg-httpsclient
|
||||
|
|
|
@ -2009,7 +2009,7 @@ class TestDeleteComplexExpr(TestcaseBase):
|
|||
collection_w = self.init_collection_general(prefix, False)[0]
|
||||
|
||||
# delete
|
||||
error = {ct.err_code: 1, ct.err_msg: "collection not loaded: unrecoverable error"}
|
||||
error = {ct.err_code: 101, ct.err_msg: "collection not loaded"}
|
||||
collection_w.delete(expr="int64 >= 0", check_task=CheckTasks.err_res, check_items=error)
|
||||
|
||||
@pytest.mark.tags(CaseLabel.L1)
|
||||
|
|
|
@ -108,7 +108,7 @@ class TestCollectionSearchInvalid(TestcaseBase):
|
|||
def get_invalid_expr_value(self, request):
|
||||
if not isinstance(request.param, str):
|
||||
pytest.skip("expression value only support string")
|
||||
if request.param == "":
|
||||
if request.param in ["", " "]:
|
||||
pytest.skip("empty field is valid")
|
||||
yield request.param
|
||||
|
||||
|
@ -483,6 +483,7 @@ class TestCollectionSearchInvalid(TestcaseBase):
|
|||
invalid_search_expr = get_invalid_expr_value
|
||||
log.info("test_search_param_invalid_expr_value: searching with "
|
||||
"invalid expr: %s" % invalid_search_expr)
|
||||
collection_w.load()
|
||||
collection_w.search(vectors[:default_nq], default_search_field,
|
||||
default_search_params, default_limit, invalid_search_expr,
|
||||
check_task=CheckTasks.err_res,
|
||||
|
|
Loading…
Reference in New Issue