Skip to content

Conversation

@rebatidas
Copy link

The FileUploadImproved_Test was creating a single ContentVersion in @testsetup and reusing it across multiple test methods.
When tests run in parallel, this caused UNABLE_TO_LOCK_ROW errors on ContentVersion / ContentDocumentLink.

This PR updates the test to create file records per test method and removes shared state.
No runtime package logic is changed.

Updates the test to avoid reusing a single ContentVersion across multiple test methods, which caused UNABLE_TO_LOCK_ROW errors under parallel execution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant