+ Start a Discussion
sparktestsparktest 

How do you setup test methods for @future methods?

 

I have a trigger that launches a delete on a child/detail object based on an appropriate update to the master object.  This will often entail more than 100 records hence the use of the @future method. 

 

The tests are failing on the path that uses the @future method.

 

Any Help?

 

thanks,

TehNrdTehNrd

Unfortunetly don't have a solution for you other than try to setup up your test method to update less than 100 records but please vote for this idea as it is the main issue.

 

http://ideas.salesforce.com/article/show/10097033/future_asynchrounous_unit_test_must_reset_governor_limits