From 8a4a6405a64b444b98dd49be211d91f522bf0280 Mon Sep 17 00:00:00 2001 From: NicoYuan1986 <109071306+NicoYuan1986@users.noreply.github.com> Date: Fri, 10 Mar 2023 16:59:52 +0800 Subject: [PATCH] Modify the result check of search binary (#22681) Signed-off-by: nico --- tests/python_client/testcases/test_search.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/python_client/testcases/test_search.py b/tests/python_client/testcases/test_search.py index 64861189eb..e005ee7df3 100644 --- a/tests/python_client/testcases/test_search.py +++ b/tests/python_client/testcases/test_search.py @@ -3973,17 +3973,6 @@ class TestsearchPagination(TestcaseBase): assert len(search_res[0].ids) == len(res[0].ids[offset:]) assert sorted(search_res[0].distances, key=numpy.float32) == sorted(res[0].distances[offset:], key=numpy.float32) - unique_a, unique_b = set(search_res[0].ids), set(res[0].ids[offset:]) - diff = unique_a ^ unique_b - - assert len(diff) <= 2 - - if len(diff) == 2: - i = list(search_res[0].ids).index((unique_a-unique_b).pop()) - i2 = list(res[0].ids[offset:]).index((unique_b-unique_a).pop()) - - assert search_res[0].distances[i] == res[0].distances[offset:][i2] - @pytest.mark.tags(CaseLabel.L2) @pytest.mark.parametrize("limit", [100, 3000, 10000])