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
sfdc-Lsfdc-L 

Deployment process failures

HI Team, i have a class that implements shedulable and this class is used to send a mails,also i have test class for this shedulable,when we deploy from sandbox to prod getting error'System.unexpectedException:No more than one executeBatch can be called within a test method'.I came to know that shedule is invoking 2 times i.e in class and test class . my code was like this ex: eventreminderbatch erb=new eventreminderbatch(); String schr='0 17?2011-2012'; System.shedule('eventreminderbatch ',schr,erb); So how to resolve this issue during the deployment process pls let me know asap. Thanks!