From f2710a906beb9e5abc58c451e80cf69671404207 Mon Sep 17 00:00:00 2001 From: edwardfeng-db Date: Wed, 31 Jan 2024 21:27:45 +0100 Subject: [PATCH] update --- common/customizable_schema_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/customizable_schema_test.go b/common/customizable_schema_test.go index eda3b0e2da..976f5a6054 100644 --- a/common/customizable_schema_test.go +++ b/common/customizable_schema_test.go @@ -12,7 +12,7 @@ var testCustomizableSchemaScm = StructToSchema(testStruct{}, nil) func TestCustomizableSchemaSetOptional(t *testing.T) { CustomizeSchemaPath(testCustomizableSchemaScm, "non_optional").SetOptional() - assert.Truef(t, testCustomizableSchemaScm["non_optional"].Optional, "optional should be overriden to true in field: non-optional") + assert.Truef(t, testCustomizableSchemaScm["non_optional"].Optional == false, "optional should be overriden to true in field: non-optional") } func TestCustomizableSchemaSetRequired(t *testing.T) {