I have a bunch of unit tests in which I'm updating my custom settings object to test certain workflows. This causes an
UNABLE_TO_LOCK_ROW exception since multiple tests are updating the values simultaneously. If I choose 'Disable Parallel Running' in Options, I do not get any errors. I have the following questions with this approach:
- Custom objects have a setting to provide a
FOR_UPDATEoption for Locking. Is there a way I can update custom settings with a lock using
- In case of installing the package, is there a way to specify 'disable parallel running'. If not, how would package installation work in this case as there would be test failures?