mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
test: update sdk version and test cases (#40859)
Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
parent
a090b2ca14
commit
8e5bae2f2d
@ -205,8 +205,9 @@ class TestMilvusClientDatabaseInvalid(TestMilvusClientV2Base):
|
||||
expected: raise exception
|
||||
"""
|
||||
client = self._client()
|
||||
error = {ct.err_code: 1, ct.err_msg: f"Unexpected error, message=<unsupported operand type(s) for +: 'float' and 'str'>"}
|
||||
self.list_databases(client, db_name,
|
||||
error = {ct.err_code: 1, ct.err_msg: f"Unexpected error, message=<GrpcHandler.list_database() "
|
||||
f"got an unexpected keyword argument 'db_name'"}
|
||||
self.list_databases(client, db_name=db_name,
|
||||
check_task=CheckTasks.err_res, check_items=error)
|
||||
|
||||
@pytest.mark.tags(CaseLabel.L1)
|
||||
|
||||
@ -843,8 +843,7 @@ class TestSearchPagination(TestcaseBase):
|
||||
res = collection_w.search(search_vectors[:default_nq], ct.default_sparse_vec_field_name, _search_param,
|
||||
default_limit + offset)[0]
|
||||
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)
|
||||
assert sorted(search_res[0].distances, key=np.float32) == sorted(res[0].distances[offset:], key=np.float32)
|
||||
|
||||
|
||||
class TestSearchPaginationInvalid(TestMilvusClientV2Base):
|
||||
|
||||
@ -28,8 +28,8 @@ pytest-parallel
|
||||
pytest-random-order
|
||||
|
||||
# pymilvus
|
||||
pymilvus==2.6.0rc84
|
||||
pymilvus[bulk_writer]==2.6.0rc84
|
||||
pymilvus==2.6.0rc88
|
||||
pymilvus[bulk_writer]==2.6.0rc88
|
||||
|
||||
|
||||
# for customize config test
|
||||
@ -54,7 +54,7 @@ numpy==1.26.4
|
||||
tenacity==8.1.0
|
||||
rich==13.7.0
|
||||
# for standby test
|
||||
etcd-sdk-python==0.0.4
|
||||
etcd-sdk-python==0.0.6
|
||||
deepdiff==6.7.1
|
||||
|
||||
# for test result analyzer
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user