From 9bebca472bc564ba93a3e97a7f2ae283ccf6b783 Mon Sep 17 00:00:00 2001 From: nico <109071306+NicoYuan1986@users.noreply.github.com> Date: Thu, 1 Aug 2024 11:04:13 +0800 Subject: [PATCH] test: update pymilvus version (#35143) pr: #34843 Signed-off-by: nico --- tests/python_client/requirements.txt | 4 ++-- tests/python_client/testcases/test_collection.py | 4 ++-- tests/python_client/testcases/test_utility.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/python_client/requirements.txt b/tests/python_client/requirements.txt index dcff45eb3c..9c6d3e555d 100644 --- a/tests/python_client/requirements.txt +++ b/tests/python_client/requirements.txt @@ -12,8 +12,8 @@ allure-pytest==2.7.0 pytest-print==0.2.1 pytest-level==0.1.1 pytest-xdist==2.5.0 -pymilvus==2.4.4rc11 -pymilvus[bulk_writer]==2.4.4rc11 +pymilvus==2.4.5rc11 +pymilvus[bulk_writer]==2.4.5rc11 pytest-rerunfailures==9.1.1 git+https://github.com/Projectplace/pytest-tags ndg-httpsclient diff --git a/tests/python_client/testcases/test_collection.py b/tests/python_client/testcases/test_collection.py index 1e2569e75f..361f869cb3 100644 --- a/tests/python_client/testcases/test_collection.py +++ b/tests/python_client/testcases/test_collection.py @@ -2832,8 +2832,8 @@ class TestLoadCollection(TestcaseBase): assert loading_progress == {'loading_progress': '100%'} # verify load different replicas thrown an exception - error = {ct.err_code: 1100, ct.err_msg: "failed to load collection: can't change the replica number for " - "loaded collection: expected=1, actual=2: invalid parameter"} + error = {ct.err_code: 1100, ct.err_msg: "call query coordinator LoadCollection: can't change the replica " + "number for loaded collection: invalid parameter[expected=1][actual=2]"} collection_w.load(replica_number=2, check_task=CheckTasks.err_res, check_items=error) one_replica, _ = collection_w.get_replicas() assert len(one_replica.groups) == 1 diff --git a/tests/python_client/testcases/test_utility.py b/tests/python_client/testcases/test_utility.py index f4eccf1959..ee578b0d8e 100644 --- a/tests/python_client/testcases/test_utility.py +++ b/tests/python_client/testcases/test_utility.py @@ -731,7 +731,7 @@ class TestUtilityBase(TestcaseBase): cw = self.init_collection_wrap(name=c_name) self.index_wrap.init_index(cw.collection, default_field_name, default_index_params) res, _ = self.utility_wrap.index_building_progress(c_name) - exp_res = {'total_rows': 0, 'indexed_rows': 0, 'pending_index_rows': 0} + exp_res = {'total_rows': 0, 'indexed_rows': 0, 'pending_index_rows': 0, 'state': 'Finished'} assert res == exp_res @pytest.mark.tags(CaseLabel.L2) @@ -822,7 +822,7 @@ class TestUtilityBase(TestcaseBase): cw.create_index(default_field_name, default_index_params) assert self.utility_wrap.wait_for_index_building_complete(c_name)[0] res, _ = self.utility_wrap.index_building_progress(c_name) - exp_res = {'total_rows': 0, 'indexed_rows': 0, 'pending_index_rows': 0} + exp_res = {'total_rows': 0, 'indexed_rows': 0, 'pending_index_rows': 0, 'state': 'Finished'} assert res == exp_res @pytest.mark.tags(CaseLabel.L1)