details: https://code.openbravo.com/erp/devel/pi/rev/25f89f3e6667 changeset: 34250:25f89f3e6667 user: Carlos Aristu <carlos.aristu <at> openbravo.com> date: Thu Jun 28 16:24:40 2018 +0200 summary: related to issue 38827: fix to avoid random test failures
diffstat: src-test/src/org/openbravo/test/system/ErrorTextParserTest.java | 3 +++ src/org/openbravo/test/system/ErrorTextParserTest_data.xsql | 6 ++++++ 2 files changed, 9 insertions(+), 0 deletions(-) diffs (29 lines): diff -r 3aea23cfa1a2 -r 25f89f3e6667 src-test/src/org/openbravo/test/system/ErrorTextParserTest.java --- a/src-test/src/org/openbravo/test/system/ErrorTextParserTest.java Sat Jun 23 00:45:48 2018 +0530 +++ b/src-test/src/org/openbravo/test/system/ErrorTextParserTest.java Thu Jun 28 16:24:40 2018 +0200 @@ -144,6 +144,9 @@ if (testCase != 9) { // set core to development to avoid the _mod_ trigger restrictions ErrorTextParserTestData.setCoreInDevelopment(con, conn); + } else { + // ensure that the are not any modules in development + ErrorTextParserTestData.setNotInDevelopment(con, conn); } String errorMessage = ""; diff -r 3aea23cfa1a2 -r 25f89f3e6667 src/org/openbravo/test/system/ErrorTextParserTest_data.xsql --- a/src/org/openbravo/test/system/ErrorTextParserTest_data.xsql Sat Jun 23 00:45:48 2018 +0530 +++ b/src/org/openbravo/test/system/ErrorTextParserTest_data.xsql Thu Jun 28 16:24:40 2018 +0200 @@ -33,6 +33,12 @@ </Sql> </SqlMethod> + <SqlMethod name="setNotInDevelopment" type="preparedStatement" connection="true" return="rowCount"> + <Sql> + UPDATE AD_MODULE SET isindevelopment = 'N' + </Sql> + </SqlMethod> + <SqlMethod name="insertUserPK" type="preparedStatement" connection="true" return="rowCount"> <Sql> INSERT INTO AD_USER (AD_USER_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, NAME) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits