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