Skip to content

Commit

Permalink
test: update test cases (#29416)
Browse files Browse the repository at this point in the history
issue: #27518 #29274
pr: #29383

Signed-off-by: nico <[email protected]>
  • Loading branch information
NicoYuan1986 authored Dec 23, 2023
1 parent 0ec8c6c commit 60a9046
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/python_client/common/common_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,13 +913,13 @@ def gen_invalid_field_types():


def gen_invalid_search_params_type():
invalid_search_key = 100
# invalid_search_key = 100
search_params = []
for index_type in ct.all_index_types:
if index_type == "FLAT":
continue
search_params.append({"index_type": index_type, "search_params": {"invalid_key": invalid_search_key}})
if index_type in ["IVF_FLAT", "IVF_SQ8", "IVF_PQ"]:
# search_params.append({"index_type": index_type, "search_params": {"invalid_key": invalid_search_key}})
elif index_type in ["IVF_FLAT", "IVF_SQ8", "IVF_PQ"]:
for nprobe in ct.get_invalid_ints:
ivf_search_params = {"index_type": index_type, "search_params": {"nprobe": nprobe}}
search_params.append(ivf_search_params)
Expand Down
3 changes: 1 addition & 2 deletions tests/python_client/testcases/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,6 @@ def test_search_invalid_params_type(self, index, params):
method: test search with invalid params type
expected: raise exception and report the error
"""
if index == "FLAT":
pytest.skip("skip in FLAT index")
# 1. initialize with data
collection_w, _, _, insert_ids = self.init_collection_general(prefix, True, 5000,
is_index=False)[0:4]
Expand Down Expand Up @@ -7510,6 +7508,7 @@ def test_range_search_round_decimal(self, round_decimal):
rel_tol=0, abs_tol=abs_tol)

@pytest.mark.tags(CaseLabel.L2)
@pytest.mark.skip("known issue #27518")
def test_range_search_with_expression_large(self, dim):
"""
target: test range search with large expression
Expand Down

0 comments on commit 60a9046

Please sign in to comment.