details: https://code.openbravo.com/erp/devel/pi/rev/e3c90c93c27d changeset: 31519:e3c90c93c27d user: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> date: Mon Feb 13 13:02:43 2017 +0100 summary: Fixes issue 35241: Random failure in TestCosting when executing it in Oracle
diffstat: src-test/src/org/openbravo/test/costing/TestCosting.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diffs (38 lines): diff -r 548b15b9c37e -r e3c90c93c27d src-test/src/org/openbravo/test/costing/TestCosting.java --- a/src-test/src/org/openbravo/test/costing/TestCosting.java Mon Feb 13 14:06:44 2017 -0500 +++ b/src-test/src/org/openbravo/test/costing/TestCosting.java Mon Feb 13 13:02:43 2017 +0100 @@ -4524,9 +4524,15 @@ // Create goods receipt, run costing background, post it and assert it ShipmentInOut goodsReceipt1 = createGoodsReceipt(purchaseOrder, price1, quantity2, day1); + // Add sleep to avoid assert errors + Thread.sleep(1000); + // Create goods receipt, run costing background, post it and assert it ShipmentInOut goodsReceipt2 = createGoodsReceipt(purchaseOrder, price1, quantity3, day2); + // Add sleep to avoid assert errors + Thread.sleep(1000); + // Create goods receipt, run costing background, post it and assert it ShipmentInOut goodsReceipt3 = createGoodsReceipt(purchaseOrder, price1, quantity4, day3); @@ -4753,12 +4759,18 @@ // Create goods receipt, run costing background, post it and assert it ShipmentInOut goodsReceipt21 = createGoodsReceipt(product2, price2, quantity2, day1); + // Add sleep to avoid assert errors + Thread.sleep(1000); + // Create goods receipt, run costing background, post it and assert it ShipmentInOut goodsReceipt12 = createGoodsReceipt(product1, price1, quantity3, day2); // Create goods receipt, run costing background, post it and assert it ShipmentInOut goodsReceipt22 = createGoodsReceipt(product2, price2, quantity4, day2); + // Add sleep to avoid assert errors + Thread.sleep(1000); + // Create goods receipt, run costing background, post it and assert it ShipmentInOut goodsReceipt13 = createGoodsReceipt(product1, price1, quantity5, day3); ------------------------------------------------------------------------------ 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