-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.6.0-HF18, 5.7.1
-
Component/s: Nuxeo Drive, Tests
Transactions started in tests always need to be commited or rolled back (especially if an exception is thrown by the code executed inside the transaction).
Always follow this pattern:
TransactionHelper.startTransaction(); try { // Code that needs to be executed inside a transaction ... } finally { TransactionHelper.commitOrRollbackTransaction(); }