From f1257cf11b31494502de8a9ece1e1a78e28f9592 Mon Sep 17 00:00:00 2001 From: nico <109071306+NicoYuan1986@users.noreply.github.com> Date: Tue, 26 Sep 2023 17:17:28 +0800 Subject: [PATCH] update test cases nightly (#27353) Signed-off-by: nico --- tests/python_client/common/common_func.py | 5 ++++- tests/python_client/testcases/test_search.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/python_client/common/common_func.py b/tests/python_client/common/common_func.py index 416fc2051a..966932784f 100644 --- a/tests/python_client/common/common_func.py +++ b/tests/python_client/common/common_func.py @@ -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.") diff --git a/tests/python_client/testcases/test_search.py b/tests/python_client/testcases/test_search.py index 7179b7e4e8..012d9bfabe 100644 --- a/tests/python_client/testcases/test_search.py +++ b/tests/python_client/testcases/test_search.py @@ -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