From d4c7225916c14ed8b6a5f3d31b8b675bdf8a5412 Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Thu, 4 Mar 2021 15:42:47 +0800 Subject: [PATCH] Fix ci: failed to catch exception Signed-off-by: zhenshan.cao --- tests/python/test_search.py | 2 +- tests/python_test/test_index.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python/test_search.py b/tests/python/test_search.py index 26a09d634..78a07cd77 100644 --- a/tests/python/test_search.py +++ b/tests/python/test_search.py @@ -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 ''' diff --git a/tests/python_test/test_index.py b/tests/python_test/test_index.py index 71d6613d5..e121dd4b5 100644 --- a/tests/python_test/test_index.py +++ b/tests/python_test/test_index.py @@ -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") -- GitLab