mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
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:
parent
01da5010f5
commit
9996e8d1ce
@ -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],
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user