Skip to content

Commit

Permalink
IDEMPIERE-5567 - Parallel unit tests fail frequently with deadlock (i…
Browse files Browse the repository at this point in the history
…dempiere#2190)

* IDEMPIERE-5567 - Parallel unit tests fail frequently with deadlock

when executing unit tests in parallel, MTestUUTest fails frequently with error detected deadlock
this can be caused by testReadingUpdatingTestUU trying to update translations and at the same time
the testDeletingTestUU is deleting the same record and deleting the same translations

* - implement suggestion from Heng Sin

* - remove unnecessary code
  • Loading branch information
CarlosRuiz-globalqss authored Jan 15, 2024
1 parent 63ec7f7 commit f57dd41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions org.adempiere.base/src/org/compiere/model/MTestUU.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ public MTestUU(Properties ctx, String Test_UU, String trxName) {
*/
public MTestUU(Properties ctx, String Test_UU, String trxName, String... virtualColumns) {
super(ctx, Test_UU, trxName, virtualColumns);
if ("".equals(Test_UU)) {
setName(null);
}
} // MTestUU

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@
import org.compiere.util.Util;
import org.idempiere.test.AbstractTestCase;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.parallel.Execution;
import org.junit.jupiter.api.parallel.ExecutionMode;

/**
*
* @author Carlos Ruiz - globalqss - bxservice
*
*/
@Execution(ExecutionMode.SAME_THREAD)
public class MTestUUTest extends AbstractTestCase {

private static final String TestRecordInGardenWorld = "8858ecc2-cf1d-405f-987f-793536037e76";
Expand Down

0 comments on commit f57dd41

Please sign in to comment.