diff --git a/tests/go_client/testcases/collection_test.go b/tests/go_client/testcases/collection_test.go index e5e009bb2b7a9..248206c56e269 100644 --- a/tests/go_client/testcases/collection_test.go +++ b/tests/go_client/testcases/collection_test.go @@ -836,7 +836,7 @@ func TestCreateVarcharArrayInvalidLength(t *testing.T) { for _, invalidLength := range []int64{-1, 0, common.MaxLength + 1} { arrayVarcharField.WithMaxLength(invalidLength) err := mc.CreateCollection(ctx, client.NewCreateCollectionOption(collName, schema)) - common.CheckErr(t, err, false, "the maximum length specified for a VarChar should be in (0, 65535]") + common.CheckErr(t, err, false, "the maximum length specified for a VarChar should be in (0, 1048576]") } } @@ -858,7 +858,7 @@ func TestCreateVarcharInvalidLength(t *testing.T) { for _, invalidLength := range []int64{-1, 0, common.MaxLength + 1} { varcharField.WithMaxLength(invalidLength) err := mc.CreateCollection(ctx, client.NewCreateCollectionOption(collName, schema)) - common.CheckErr(t, err, false, "the maximum length specified for a VarChar should be in (0, 65535]") + common.CheckErr(t, err, false, "the maximum length specified for a VarChar should be in (0, 1048576]") } } diff --git a/tests/python_client/testcases/test_collection.py b/tests/python_client/testcases/test_collection.py index 0cd69c80794c9..1eaea98433782 100644 --- a/tests/python_client/testcases/test_collection.py +++ b/tests/python_client/testcases/test_collection.py @@ -4117,7 +4117,7 @@ def test_collection_string_array_max_length_invalid(self, max_length): self.init_collection_wrap(schema=array_schema, check_task=CheckTasks.err_res, check_items={ct.err_code: 65535, ct.err_msg: "the maximum length specified for a VarChar " - "should be in (0, 65535]"}) + "should be in (0, 1048576]"}) @pytest.mark.tags(CaseLabel.L2) def test_collection_array_field_all_datatype(self):