From 3920f6426a5eef39d8bd315a855405a2a8fba2b9 Mon Sep 17 00:00:00 2001 From: NicoYuan1986 <109071306+NicoYuan1986@users.noreply.github.com> Date: Fri, 2 Sep 2022 18:41:03 +0800 Subject: [PATCH] Fix the error of the search case reporting unmatched limit (#18980) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “nico” Signed-off-by: “nico” --- tests/python_client/testcases/test_search.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/python_client/testcases/test_search.py b/tests/python_client/testcases/test_search.py index 0ffb661fa..67945cc8f 100644 --- a/tests/python_client/testcases/test_search.py +++ b/tests/python_client/testcases/test_search.py @@ -1778,16 +1778,12 @@ class TestCollectionSearch(TestcaseBase): res = collection_w.search(binary_vectors[:nq], "binary_vector", search_params, default_limit, "int64 >= 0", _async=_async, - travel_timestamp=time_stamp, - check_task=CheckTasks.check_search_results, - check_items={"nq": nq, - "ids": insert_ids, - "limit": default_limit, - "_async": _async})[0] + travel_timestamp=time_stamp)[0] if _async: res.done() res = res.result() assert res[0].distances[0] == 0.0 + assert len(res) <= default_limit @pytest.mark.tags(CaseLabel.L2) @pytest.mark.parametrize("index", ["BIN_FLAT"]) -- GitLab