Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ...Apex test class failing during production deployment #202

Open
mkulshershtha opened this issue Oct 11, 2022 · 2 comments
Open

[BUG] ...Apex test class failing during production deployment #202

mkulshershtha opened this issue Oct 11, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@mkulshershtha
Copy link

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

@mkulshershtha mkulshershtha added the bug Something isn't working label Oct 11, 2022
@kanavkhuranafluido
Copy link

Having multiple test class errors during Production Deployment. It's strange that I got 0 errors during sandbox deployment.
@mkulshershtha were you able to figure these out?

@rajjade38
Copy link

@mkulshershtha @kanavkhuranafluido Were you able to resolve this errors during production deployment. I am facing similar issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants