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
JavanLJavanL 

Deployment failure due to batch not executing in test class.

My production deployment keeps failing due to 6 test classes where the logic contains a batch call.
Each test class fails due to an assertion inequality. The assertion is comparing an expected integer to the actual integer returned after the batch class execution.
It appears that the batch class does not execute and I get the failure.
There has not been any changes to the definition of any of the test classes.
Prior to 7/9/2015, these test class executed the batch class and passed successfully.

Has anyone else experienced this behavior? If so, what was the resolution?
Any help to resolve this issue quickly is very much appreciated.

Thank you.
Ajay K DubediAjay K Dubedi
Hi,
Some days earlier i also got this issue while deployment so whai i did i just commented that part of the test class which was throwing the error and deployed it again in the production org.