0

I have a test class which fails when the Deferred Sharing is on. Because the test data created by the admin user is not seen by another user . and I get insufficient privileges error when i run as new user and do an update. Is there a way that i can create a permission set in the test class and assign to the user so that sharing rules won't be a problem and the test class will pass ? Please suggest.

  • 2
    Disable deferred sharing recalculation . It is not meant to be left on. Your missing the point of the test as well. It is supposed to be failing with deferred sharing on (typically) – Eric Jun 9 '17 at 2:08
  • You found any solution ? – Muzammil Bajaria Jun 9 '17 at 6:37
  • This has already been answered. Please refer to the answer here – user52512 Jan 4 '18 at 17:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.