Apex runs in a multitenant environment, the Apex runtime engine strictly enforces limits to ensure that runaway Apex code or processes don’t monopolize shared resources. … Test classes: This limit also does not apply to any code included in a class defined with the @isTest annotation.