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
siva kumar 201siva kumar 201 

Regarding the task "Test automation logic" in apex specialist super badge.

Can anyone help me to pass the challenge  "Test automation logic" in apex specialist super badge. I got the code coverage of 100% but it throws the error as " Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.LimitException: Too many DML statements: 151. " 
Thank you.
Ragava reddyRagava reddy
Hi Siva,

You have to use Test.startTest() and Test.stopTest() by using this you have to refresh your governor limits.
Number of DML statements : 150
For Detail on this you have to go through the below link :
http://salesforce.stackexchange.com/questions/80949/when-to-use-test-starttest

Thanks,
Raghavendra Reddy.D