test: Update error msg for search by ids tests (#46792)

related issue: #46789

Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
This commit is contained in:
yanliang567 2026-01-05 20:09:24 +08:00 committed by GitHub
parent 01da5010f5
commit 9996e8d1ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1839,7 +1839,7 @@ class TestMilvusClientStructArraySearch(TestMilvusClientV2Base):
# Search using EmbeddingList
error = {ct.err_code: 999,
ct.err_msg: "array of vector is not supported for search by IDs"}
ct.err_msg: "array of vector is not supported for search by IDs"}
self.search(client,
collection_name,
ids=[0, 1],

View File

@ -270,7 +270,7 @@ class TestMilvusClientSearchByPk(TestMilvusClientV2Base):
# search again without specify anns_field
error = {"err_code": 999,
"err_msg": "anns_field is required for search by IDs"}
"err_msg": "multiple vector fields exist, please specify anns_field in search_params"}
self.search(
client,
collection_name,
@ -356,7 +356,7 @@ class TestMilvusClientSearchByPk(TestMilvusClientV2Base):
# search with duplicate primary key values
# TODO: Update the error msg after #46740 fixed
error = {"err_code": 999,
"err_msg": "some of the provided primary key IDs do not exist: missing IDs = []"}
"err_msg": "duplicate IDs found in search request"}
self.search(
client,
collection_name,