未验证 提交 4f93dbc3 编写于 作者: N NicoYuan1986 提交者: GitHub

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

Signed-off-by: Nnico <cheng.yuan@zilliz.com>
Signed-off-by: Nnico <cheng.yuan@zilliz.com>
上级 5f5fdb07
...@@ -913,7 +913,7 @@ class TestInsertAsync(TestcaseBase): ...@@ -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):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册