test: update sdk version and test cases (#40859)

Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
nico 2025-03-26 10:50:28 +08:00 committed by GitHub
parent a090b2ca14
commit 8e5bae2f2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -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)

View File

@ -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):

View File

@ -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