mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 04:19:18 +08:00
update test cases nightly (#27353)
Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
parent
6539a5ae2c
commit
f1257cf11b
@ -935,7 +935,10 @@ def gen_invalid_search_param(index_type, metric_type="L2"):
|
|||||||
for search_list in ["-1"]:
|
for search_list in ["-1"]:
|
||||||
diskann_search_param = {"metric_type": metric_type, "params": {"search_list": search_list}}
|
diskann_search_param = {"metric_type": metric_type, "params": {"search_list": search_list}}
|
||||||
search_params.append(diskann_search_param)
|
search_params.append(diskann_search_param)
|
||||||
|
elif index_type == "SCANN":
|
||||||
|
for reorder_k in [-1]:
|
||||||
|
scann_search_param = {"metric_type": metric_type, "params": {"reorder_k": reorder_k, "nprobe": 10}}
|
||||||
|
search_params.append(scann_search_param)
|
||||||
else:
|
else:
|
||||||
log.error("Invalid index_type.")
|
log.error("Invalid index_type.")
|
||||||
raise Exception("Invalid index_type.")
|
raise Exception("Invalid index_type.")
|
||||||
|
@ -758,8 +758,8 @@ class TestCollectionSearchInvalid(TestcaseBase):
|
|||||||
|
|
||||||
@pytest.mark.tags(CaseLabel.L2)
|
@pytest.mark.tags(CaseLabel.L2)
|
||||||
@pytest.mark.parametrize("index, params",
|
@pytest.mark.parametrize("index, params",
|
||||||
zip(ct.all_index_types[1:6],
|
zip(ct.all_index_types[1:7],
|
||||||
ct.default_index_params[1:6]))
|
ct.default_index_params[1:7]))
|
||||||
def test_search_different_index_invalid_params(self, index, params):
|
def test_search_different_index_invalid_params(self, index, params):
|
||||||
"""
|
"""
|
||||||
target: test search with different index
|
target: test search with different index
|
||||||
|
Loading…
Reference in New Issue
Block a user