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
Mosammat NargisMosammat Nargis 

BatchApexErrorEvent trigger Test Class

I created a BatchApexErrorEvent Trigger and it is working as expected when the Batch is throwing CPU limit Exception. I am not able to Cover the Trigger with Test Class code. I tried using Test.getEventBus().deliver(); but the Trigger is not covered. 

Please help if anyone has written a Test Class to cover the trigger on BatchApexErrorEvent object. 

Thanks,
Nargis