mirror of https://github.com/milvus-io/milvus.git
Transfer ids into list (#22640)
See also: #22168 Signed-off-by: yangxuan <xuan.yang@zilliz.com>pull/22557/head
parent
90a5aa6265
commit
7b71c69516
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue