From 7ecdee93982e93993101c36e0b7845ff6b5e1f38 Mon Sep 17 00:00:00 2001 From: NicoYuan1986 <109071306+NicoYuan1986@users.noreply.github.com> Date: Wed, 14 Dec 2022 19:31:23 +0800 Subject: [PATCH] Update test cases about maximum field number 64 (#21239) Signed-off-by: nico Signed-off-by: nico --- tests/python_client/testcases/test_collection.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/python_client/testcases/test_collection.py b/tests/python_client/testcases/test_collection.py index 9a355a15fc..5e06a313a8 100644 --- a/tests/python_client/testcases/test_collection.py +++ b/tests/python_client/testcases/test_collection.py @@ -986,6 +986,7 @@ class TestCollectionParams(TestcaseBase): check_items={exp_name: c_name, exp_schema: schema}) @pytest.mark.tags(CaseLabel.L2) + @pytest.mark.xfail(reason="issue #21238") def test_create_collection_over_maximum_fields(self): """ target: Test create collection with more than the maximum fields @@ -1003,7 +1004,7 @@ class TestCollectionParams(TestcaseBase): int_fields.append(cf.gen_float_vec_field()) int_fields.append(cf.gen_int64_field(is_primary=True)) schema = cf.gen_collection_schema(fields=int_fields) - error = {ct.err_code: 1, ct.err_msg: "maximum field's number should be limited to 256"} + error = {ct.err_code: 1, ct.err_msg: "maximum field's number should be limited to 64"} self.collection_wrap.init_collection(c_name, schema=schema, check_task=CheckTasks.err_res, check_items=error) @@ -1689,6 +1690,7 @@ class TestCreateCollectionInvalid(TestcaseBase): """ @pytest.mark.tags(CaseLabel.L2) + @pytest.mark.xfail(reason="issue #21238") def test_create_collection_limit_fields(self): """ target: test create collection with maximum fields @@ -1708,7 +1710,7 @@ class TestCreateCollectionInvalid(TestcaseBase): field_name_tmp = gen_unique_str("field_name") field_schema_temp = cf.gen_int64_field(field_name_tmp) field_schema_list.append(field_schema_temp) - error = {ct.err_code: 1, ct.err_msg: "'maximum field\'s number should be limited to 256'"} + error = {ct.err_code: 1, ct.err_msg: "'maximum field\'s number should be limited to 64'"} schema, _ = self.collection_schema_wrap.init_collection_schema(fields=field_schema_list) self.init_collection_wrap(name=c_name, schema=schema, check_task=CheckTasks.err_res, check_items=error)