提交 d4c72259 编写于 作者: Z zhenshan.cao 提交者: yefu.chen

Fix ci: failed to catch exception

Signed-off-by: Nzhenshan.cao <zhenshan.cao@zilliz.com>
上级 ba21b11e
......@@ -339,7 +339,7 @@ class TestSearchBase:
@pytest.mark.level(2)
def test_search_index_partition_B(self, connect, collection, get_simple_index, get_top_k, get_nq):
'''
target: test basic search function, all the search params is corrent, test all index params, and build
target: test basic search function, all the search params is correct, test all index params, and build
method: search with the given vectors, check the result
expected: the length of the result is top_k
'''
......
......@@ -830,8 +830,8 @@ class TestIndexAsync:
@pytest.mark.level(2)
def test_create_index_with_invalid_collection_name(self, connect):
collection_name = " "
future = connect.create_index(collection_name, field_name, default_index, _async=True)
with pytest.raises(Exception) as e:
future = connect.create_index(collection_name, field_name, default_index, _async=True)
res = future.result()
@pytest.mark.tags("0331")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册