diff --git a/server/channels/app/custom_profile_attributes_test.go b/server/channels/app/custom_profile_attributes_test.go index 05f7ea792fc..9cec3a1a5b0 100644 --- a/server/channels/app/custom_profile_attributes_test.go +++ b/server/channels/app/custom_profile_attributes_test.go @@ -373,8 +373,8 @@ func TestDeleteCPAField(t *testing.T) { }) require.NoError(t, err) - createdField, err := th.App.CreateCPAField(newField) - require.NoError(t, err) + createdField, appErr := th.App.CreateCPAField(newField) + require.Nil(t, appErr) for i := range 3 { newValue := &model.PropertyValue{