apex-enterprise-patterns / fflib-apex-common

Common Apex Library supporting Apex Enterprise Patterns and much more!
BSD 3-Clause "New" or "Revised" License
913 stars 517 forks source link

fflib_SObjectDescribeTest.NamespacedAttributeMap_implementations -- System.AssertException: Assertion Failed: Expected: 159, Actual: 160 Stack trace: Class.fflib_SObjectDescribeTest.NamespacedAttributeMap_implementations: line 64, column 1 #249

Closed bishwambhar-sen closed 4 years ago

bishwambhar-sen commented 4 years ago

fflib_SObjectDescribeTest.NamespacedAttributeMap_implementations -- System.AssertException: Assertion Failed: Expected: 159, Actual: 160 Stack trace: Class.fflib_SObjectDescribeTest.NamespacedAttributeMap_implementations: line 64, column 1

Please Note: This test method is only failing in the production environment but passing in all sandboxes.

bishwambhar-sen commented 4 years ago

Update: This issue is now reproducible in lower orgs as well. We matched licenses with production and apparently, having Health Cloud license allows access to a new field in Account, Account.OperatingHoursId. This field is causing the difference which is resulting in the failure of the assertion. fflib method is able to pull in this field in the size however, the standard method is not. Kindly help.

bishwambhar-sen commented 4 years ago

Update: I updated the API version of the test class to 45.0 and then it worked.