IDEMPIERE-5567 - Parallel unit tests fail frequently with deadlock (#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
This commit is contained in:
parent
508bcf20d1
commit
17b012c376
|
@ -57,9 +57,6 @@ public class MTestUU extends X_TestUU {
|
|||
*/
|
||||
public MTestUU(Properties ctx, String Test_UU, String trxName, String... virtualColumns) {
|
||||
super(ctx, Test_UU, trxName, virtualColumns);
|
||||
if ("".equals(Test_UU)) {
|
||||
setName(null);
|
||||
}
|
||||
} // MTestUU
|
||||
|
||||
/**
|
||||
|
|
|
@ -38,12 +38,15 @@ import org.compiere.util.Env;
|
|||
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";
|
||||
|
|
Loading…
Reference in New Issue