diff --git a/tests/python_client/milvus_client/test_milvus_client_struct_array.py b/tests/python_client/milvus_client/test_milvus_client_struct_array.py index 8f8a2bba84..ae58c661cb 100644 --- a/tests/python_client/milvus_client/test_milvus_client_struct_array.py +++ b/tests/python_client/milvus_client/test_milvus_client_struct_array.py @@ -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], diff --git a/tests/python_client/milvus_client_v2/test_milvus_client_search_by_pk.py b/tests/python_client/milvus_client_v2/test_milvus_client_search_by_pk.py index 79cbb08c77..e21c61b273 100644 --- a/tests/python_client/milvus_client_v2/test_milvus_client_search_by_pk.py +++ b/tests/python_client/milvus_client_v2/test_milvus_client_search_by_pk.py @@ -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,