details: https://code.openbravo.com/erp/devel/pi/rev/b886c29976bb changeset: 31651:b886c29976bb user: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> date: Tue Mar 14 17:48:14 2017 +0100 summary: Fixes issue 35241: Random failure in TestCosting when executing it in Oracle
Fix testCostingGM5 adding new sleeps. diffstat: src-test/src/org/openbravo/test/costing/TestCosting.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diffs (33 lines): diff -r 498699b38a5d -r b886c29976bb src-test/src/org/openbravo/test/costing/TestCosting.java --- a/src-test/src/org/openbravo/test/costing/TestCosting.java Sat Mar 11 00:46:09 2017 +0530 +++ b/src-test/src/org/openbravo/test/costing/TestCosting.java Tue Mar 14 17:48:14 2017 +0100 @@ -3230,6 +3230,9 @@ ShipmentInOut goodsReceipt2 = createGoodsReceipt(purchaseOrder2, price2, quantity1, LOCATOR4_ID, day2); + // Add sleep to avoid assert errors + Thread.sleep(1000); + // Create goods shipment, run costing background, post it and assert it ShipmentInOut goodsShipment1 = createGoodsShipment(product, price1, quantity2, LOCATOR1_ID, day3); @@ -3253,6 +3256,9 @@ // Run price correction background runPriceBackground(); + // Add sleep to avoid assert errors + Thread.sleep(1000); + // Create goods receipt, run costing background, post it and assert it ShipmentInOut goodsReceipt3 = createGoodsReceipt(product, price3, quantity4, LOCATOR1_ID, day6); @@ -3263,6 +3269,9 @@ // Run price correction background runPriceBackground(); + // Add sleep to avoid assert errors + Thread.sleep(1000); + // Create goods movement, run costing background, post it and assert it InternalMovement goodsMovement = createGoodsMovement(product, price3, quantity5, LOCATOR4_ID, LOCATOR1_ID, day8); ------------------------------------------------------------------------------ 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