enhance: modify test cases for error msg update (#29136)

Signed-off-by: nico <cheng.yuan@zilliz.com>
pull/29251/head
nico 2023-12-15 17:28:42 +08:00 committed by GitHub
parent 5da0c8d8e3
commit 1f1a8b7770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -944,7 +944,7 @@ def gen_invalid_search_params_type():
scann_search_param = {"index_type": index_type, "search_params": {"nprobe": 8, "reorder_k": reorder_k}}
search_params.append(scann_search_param)
elif index_type == "DISKANN":
for search_list in ct.get_invalid_ints:
for search_list in ct.get_invalid_ints[1:]:
diskann_search_param = {"index_type": index_type, "search_params": {"search_list": search_list}}
search_params.append(diskann_search_param)
return search_params

View File

@ -254,7 +254,7 @@ class TestCollectionSearchInvalid(TestcaseBase):
default_search_params, default_limit, default_search_exp,
check_task=CheckTasks.err_res,
check_items={"err_code": 65535,
"err_msg": 'failed to search'})
"err_msg": 'vector dimension mismatch'})
@pytest.mark.tags(CaseLabel.L2)
def test_search_param_invalid_field_type(self, get_invalid_fields_type):
@ -837,7 +837,7 @@ class TestCollectionSearchInvalid(TestcaseBase):
search_params[0], default_limit,
default_search_exp,
check_task=CheckTasks.err_res,
check_items={"err_code": 65535, "err_msg": "failed to search"})
check_items={"err_code": 65535, "err_msg": "type must be number, but is string"})
@pytest.mark.tags(CaseLabel.L2)
def test_search_index_partition_not_existed(self):