From c025a7eef52600bff888244fb80685b926d7b6b8 Mon Sep 17 00:00:00 2001 From: yanliang567 <82361606+yanliang567@users.noreply.github.com> Date: Fri, 3 Dec 2021 18:31:34 +0800 Subject: [PATCH] Increate build index timeout in ci tests (#12709) Signed-off-by: yanliang567 --- tests/python_client/base/collection_wrapper.py | 2 +- tests/python_client/base/index_wrapper.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/python_client/base/collection_wrapper.py b/tests/python_client/base/collection_wrapper.py index 819767887..486bbb697 100644 --- a/tests/python_client/base/collection_wrapper.py +++ b/tests/python_client/base/collection_wrapper.py @@ -178,7 +178,7 @@ class ApiCollectionWrapper: return res, check_result def create_index(self, field_name, index_params, check_task=None, check_items=None, **kwargs): - timeout = kwargs.get("timeout", TIMEOUT) + timeout = kwargs.get("timeout", TIMEOUT * 2) kwargs.update({"timeout": timeout}) func_name = sys._getframe().f_code.co_name diff --git a/tests/python_client/base/index_wrapper.py b/tests/python_client/base/index_wrapper.py index 30223879e..9a0d9e9ba 100644 --- a/tests/python_client/base/index_wrapper.py +++ b/tests/python_client/base/index_wrapper.py @@ -13,6 +13,8 @@ class ApiIndexWrapper: index = None def init_index(self, collection, field_name, index_params, check_task=None, check_items=None, **kwargs): + timeout = kwargs.get("timeout", TIMEOUT * 2) + kwargs.update({"timeout": timeout}) """ In order to distinguish the same name of index """ func_name = sys._getframe().f_code.co_name res, is_succ = api_request([Index, collection, field_name, index_params], **kwargs) -- GitLab