update test cases nightly (#27353)

Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
nico 2023-09-26 17:17:28 +08:00 committed by GitHub
parent 6539a5ae2c
commit f1257cf11b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -935,7 +935,10 @@ def gen_invalid_search_param(index_type, metric_type="L2"):
for search_list in ["-1"]:
diskann_search_param = {"metric_type": metric_type, "params": {"search_list": search_list}}
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:
log.error("Invalid index_type.")
raise Exception("Invalid index_type.")

View File

@ -758,8 +758,8 @@ class TestCollectionSearchInvalid(TestcaseBase):
@pytest.mark.tags(CaseLabel.L2)
@pytest.mark.parametrize("index, params",
zip(ct.all_index_types[1:6],
ct.default_index_params[1:6]))
zip(ct.all_index_types[1:7],
ct.default_index_params[1:7]))
def test_search_different_index_invalid_params(self, index, params):
"""
target: test search with different index