Last active
December 11, 2015 03:58
-
-
Save capeterson/4541434 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger pointlessSOQL on test_obj__c (before insert) { | |
List<Contact> randomContact = [SELECT id FROM Contact LIMIT 1]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@isTest | |
private class TestCumulative{ | |
@isTest | |
private static void cumulativeTest(){ | |
List<test_obj__c> objs = [select id from test_obj__c]; | |
for(integer i = 0; i < 99; i++){ | |
insert new test_obj__c(); | |
} | |
System.debug(LoggingLevel.Error,'Finished the loop. About to die.'); | |
objs = [select id from test_obj__c]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment