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
SureshSuresh 

governer limits are same for apex and test classes or they are different .can any one tell some limits

Mahesh DMahesh D
Hi Suresh,

Governor Limits are same for any apex class but there is a difference between Synchronous vs Asynchronous

Please follow the below links:

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm

https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_apexgov.htm

https://developer.salesforce.com/page/Governors_in_Apex_Code

Please let me know if it is helpful.

Regards,
Mahesh
SureshSuresh
Hi Mahesh,

My question is does governer limits apply for test classes also? if apply are they same for apex and test class 
 
Mahesh DMahesh D
Yes they apply and they are same.

Regards,
Mahesh
Suraj Tripathi 47Suraj Tripathi 47
Hi Suresh,

Greetings!

Governer limits for the test class is same as the apex class, Please use Test.startTest() and Test.stopTest() to avoid governer limits in test classes.

Thank you!

Regards,
Suraj Tripathi