mirror of https://github.com/milvus-io/milvus.git
enhance: modify test cases for error msg update (#29136)
Signed-off-by: nico <cheng.yuan@zilliz.com>pull/29251/head
parent
5da0c8d8e3
commit
1f1a8b7770
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue