function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gunnam RamGunnam Ram 

I have 5 test classes which are creating a case record. When creating a case record in test classes.

I have 5 test classes which are creating a case record. When creating a case record in test classes the case object trigger logic is executing and creating a casearticle for each case. The problem is when I am running these 5 test classes synchronously, I am seeing "UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record" for few test classes. When I am running test classes asynchronously I am not seeing an issue and all tests passing. 
Please suggest a way where I can make all test classes pass in synchrounous mode.