Test class fails with Row lock errors on User Id when doing inserts on Content Version
Last updated 2016-12-08 ·Reference W-2884519 ·Reported By 1 users
Test classes with Insert on Content Version running in Parallel can fail with ROW LOCK ERROR on USER.
- Create 3 test classes with insert on Content Version.
- Run above 3 classes in Parallel.
- You might see ROW LOCK Error on User Id
UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: 
As a workaround, is to either use Run As Different users in each test class or not run the tests in parallel.
Reported By (1)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.