diff --git a/common/customizable_schema_test.go b/common/customizable_schema_test.go index 976f5a6054..eda3b0e2da 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 == false, "optional should be overriden to true in field: non-optional") + assert.Truef(t, testCustomizableSchemaScm["non_optional"].Optional, "optional should be overriden to true in field: non-optional") } func TestCustomizableSchemaSetRequired(t *testing.T) {