From 04da4712f302f0aa7ec0384743d5e0ee070a6cee Mon Sep 17 00:00:00 2001 From: NicoYuan1986 <109071306+NicoYuan1986@users.noreply.github.com> Date: Tue, 21 Mar 2023 19:06:00 +0800 Subject: [PATCH] Update test cases of load partition (#22885) Signed-off-by: nico --- tests/python_client/testcases/test_insert.py | 3 +-- tests/python_client/testcases/test_partition.py | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/python_client/testcases/test_insert.py b/tests/python_client/testcases/test_insert.py index 9e874455be..fce5599da3 100644 --- a/tests/python_client/testcases/test_insert.py +++ b/tests/python_client/testcases/test_insert.py @@ -1486,8 +1486,7 @@ class TestUpsertValid(TestcaseBase): res1 = collection_w.query(expr, [default_float_name], ["partition_1"])[0] assert [res1[i][default_float_name] for i in range(upsert_nb)] == float_values.to_list() - @pytest.mark.tags(CaseLabel.L2) - @pytest.mark.skip(reason="issue #22563") + @pytest.mark.tags(CaseLabel.L1) def test_upsert_same_pk_concurrently(self): """ target: test upsert the same pk concurrently diff --git a/tests/python_client/testcases/test_partition.py b/tests/python_client/testcases/test_partition.py index 726359b58f..f3bf2ad79f 100644 --- a/tests/python_client/testcases/test_partition.py +++ b/tests/python_client/testcases/test_partition.py @@ -257,7 +257,7 @@ class TestPartitionParams(TestcaseBase): """ target: test release the partition after load partition method: load partition1 and load another partition - expected: raise exception + expected: raise no exception """ self._connect() collection_w = self.init_collection_wrap() @@ -267,9 +267,7 @@ class TestPartitionParams(TestcaseBase): partition_w2.insert(cf.gen_default_list_data()) collection_w.create_index(ct.default_float_vec_field_name, index_params=ct.default_flat_index) partition_w1.load() - error = {ct.err_code: 5, ct.err_msg: f'load the partition after load collection is not supported'} - partition_w2.load(check_task=CheckTasks.err_res, - check_items=error) + partition_w2.load() @pytest.mark.tags(CaseLabel.L2) def test_load_partitions_after_release(self):