b2c-crm-sync
b2c-crm-sync copied to clipboard
[BUG] ...Apex test class failing during production deployment
Describe the bug when deploying to production we are getting apex class errors:
To Reproduce Steps to reproduce the behavior:
Execute set up VS code - b2c crm code setup and execute: sfdx force:source:deploy -p "./src/sfdc/base" -l RunLocalTests
Expected behavior B2C related test cases should be executed without error
Your local environment details:
-
Node version (
node -v
): v16.17.0 -
SFDX version (
sfdx -v
) [sfdx-cli/7.166.1 win32-x64 node-v16.17.0
Your remote environment details:
- Salesforce B2C Commerce version: [e.g. 21.10]
B2CIACustomerResolution_Test | testResolveByB2CCustomerIDSingleResult | System.AssertException: Assertion Failed: Expected the customerResolution class to return at least one (1) recordStack Trace: Class.B2CIACustomerResolution_TestHelper.validateSingleResult: line 143, column 1 Class.B2CIACustomerResolution_Test.testResolveByB2CCustomerIDSingleResult: line 210, column 1 |
---|---|---|
B2CIACustomerResolution_Test | testResolveByB2CCustomerIDSingleResultFromMultiple | System.AssertException: Assertion Failed: Expected the customerResolution class to return at least one (1) recordStack Trace: Class.B2CIACustomerResolution_TestHelper.validateSingleResult: line 143, column 1 Class.B2CIACustomerResolution_Test.testResolveByB2CCustomerIDSingleResultFromMultiple: line 270, column 1 |
![image](https://user-images.githubusercontent.com/106309306/194997906-31f18cbd-b29b-4413-aa55-0f38d80f96b3.png)