Modify test case due to the update of MilvusException (#20192)

Signed-off-by: nico <cheng.yuan@zilliz.com>

Signed-off-by: nico <cheng.yuan@zilliz.com>
pull/20215/head
NicoYuan1986 2022-10-31 19:23:35 +08:00 committed by GitHub
parent 5f5fdb0789
commit 4f93dbc335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -913,7 +913,7 @@ class TestInsertAsync(TestcaseBase):
""" """
collection_w = self.init_collection_wrap(name=cf.gen_unique_str(prefix)) collection_w = self.init_collection_wrap(name=cf.gen_unique_str(prefix))
df = cf.gen_default_dataframe_data() df = cf.gen_default_dataframe_data()
err_msg = "partitionID of partitionName:p can not be find" err_msg = "partition is not exist: p"
future, _ = collection_w.insert(data=df, partition_name="p", _async=True) future, _ = collection_w.insert(data=df, partition_name="p", _async=True)
future.done() future.done()
with pytest.raises(MilvusException, match=err_msg): with pytest.raises(MilvusException, match=err_msg):