mirror of https://github.com/milvus-io/milvus.git
Update pymilvus version and modify test case (#22113)
Signed-off-by: nico <cheng.yuan@zilliz.com>pull/22128/head
parent
1dacdc078d
commit
f1906f5c00
|
@ -12,7 +12,7 @@ allure-pytest==2.7.0
|
|||
pytest-print==0.2.1
|
||||
pytest-level==0.1.1
|
||||
pytest-xdist==2.5.0
|
||||
pymilvus==2.3.0.dev30
|
||||
pymilvus==2.3.0.dev34
|
||||
pytest-rerunfailures==9.1.1
|
||||
git+https://github.com/Projectplace/pytest-tags
|
||||
ndg-httpsclient
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import multiprocessing
|
||||
import numbers
|
||||
import random
|
||||
import numpy
|
||||
|
||||
import pytest
|
||||
import pandas as pd
|
||||
|
@ -4027,7 +4028,7 @@ class TestsearchPagination(TestcaseBase):
|
|||
ids = hits.ids
|
||||
assert set(ids).issubset(filter_ids_set)
|
||||
res_distance = res[0].distances[offset:]
|
||||
assert sorted(search_res[0].distances, key=float) == sorted(res_distance, key=float)
|
||||
assert sorted(search_res[0].distances, key=numpy.float32) == sorted(res_distance, key=numpy.float32)
|
||||
assert set(search_res[0].ids) == set(res[0].ids[offset:])
|
||||
|
||||
@pytest.mark.tags(CaseLabel.L2)
|
||||
|
|
Loading…
Reference in New Issue