function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shalini SahaiShalini Sahai 

Error during change set deployment

I am getting an Apex Test failure while deploying a change set. It says "OppPusherTests.myOppUnitTest(), Details: System.AssertException: Assertion Failed Class.OppPusherTests.myOppUnitTest: line 37, column 1"

I am trying to upload a Role hierarchy I created in the Sandbox but it keeps failing on the Apex test. There are no Deploy component errors.

Any ideas? Thanks
HawkedHawked
There is an assertion failing in the unit test class, Go to setup--> Develop --> Apex classes --> OppPusherTests. Check Line 37 and see what is being asserted, fix it and deploy your CS. Until you fix the unit test class your code would keep reporting the same error