From cddadd4b276d009a6386e60933adaf295760588d Mon Sep 17 00:00:00 2001 From: nico <109071306+NicoYuan1986@users.noreply.github.com> Date: Tue, 18 Jul 2023 18:38:58 +0800 Subject: [PATCH] update pymilvus version (#25646) Signed-off-by: nico --- tests/python_client/common/common_func.py | 1 + tests/python_client/requirements.txt | 2 +- tests/python_client/testcases/test_insert.py | 4 ++-- tests/python_client/testcases/test_search.py | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/python_client/common/common_func.py b/tests/python_client/common/common_func.py index c1c86af50e..2f2729e401 100644 --- a/tests/python_client/common/common_func.py +++ b/tests/python_client/common/common_func.py @@ -1020,6 +1020,7 @@ def install_milvus_operator_specific_config(namespace, milvus_mode, release_name def get_wildcard_output_field_names(collection_w, output_fields): all_fields = [field.name for field in collection_w.schema.fields] + output_fields = output_fields.copy() if "*" in output_fields: output_fields.remove("*") output_fields.extend(all_fields) diff --git a/tests/python_client/requirements.txt b/tests/python_client/requirements.txt index 3a5b271088..a84e6e868c 100644 --- a/tests/python_client/requirements.txt +++ b/tests/python_client/requirements.txt @@ -12,7 +12,7 @@ allure-pytest==2.7.0 pytest-print==0.2.1 pytest-level==0.1.1 pytest-xdist==2.5.0 -pymilvus==2.2.13.dev3 +pymilvus==2.2.14.dev12 pytest-rerunfailures==9.1.1 git+https://github.com/Projectplace/pytest-tags ndg-httpsclient diff --git a/tests/python_client/testcases/test_insert.py b/tests/python_client/testcases/test_insert.py index 80d35686c3..68a02cb333 100644 --- a/tests/python_client/testcases/test_insert.py +++ b/tests/python_client/testcases/test_insert.py @@ -1076,14 +1076,14 @@ class TestInsertInvalid(TestcaseBase): error = {ct.err_code: 1, ct.err_msg: "Data type is not support."} mutation_res, _ = collection_w.insert(data=df, check_task=CheckTasks.err_res, check_items=error) - @pytest.mark.tags(CaseLabel.L1) + @pytest.mark.tags(CaseLabel.L2) def test_insert_over_resource_limit(self): """ target: test insert over RPC limitation 64MB (67108864) method: insert excessive data expected: raise exception """ - nb = 150000 + nb = 120000 collection_name = cf.gen_unique_str(prefix) collection_w = self.init_collection_wrap(name=collection_name) data = cf.gen_default_dataframe_data(nb) diff --git a/tests/python_client/testcases/test_search.py b/tests/python_client/testcases/test_search.py index beab07a827..1ec5cf6bb8 100644 --- a/tests/python_client/testcases/test_search.py +++ b/tests/python_client/testcases/test_search.py @@ -1090,10 +1090,10 @@ class TestCollectionSearch(TestcaseBase): # 2. search log.info("test_search_normal: searching collection %s" % collection_w.name) search_params = {"metric_type": "", "params": {"nprobe": 10}} - collection_w.search(vectors[:dedault_nq], default_search_field, + collection_w.search(vectors[:default_nq], default_search_field, search_params, default_limit, check_task=CheckTasks.check_search_results, - check_items={"nq": dedault_nq, + check_items={"nq": default_nq, "ids": insert_ids, "limit": default_limit})