Transfer ids into list (#22640)

See also: #22168

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
pull/22557/head
XuanYang-cn 2023-03-09 16:17:52 +08:00 committed by GitHub
parent 90a5aa6265
commit 7b71c69516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3979,8 +3979,8 @@ class TestsearchPagination(TestcaseBase):
assert len(diff) <= 2
if len(diff) == 2:
i = search_res[0].ids.index((unique_a-unique_b).pop())
i2 = res[0].ids[offset:].index((unique_b-unique_a).pop())
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]