details: https://code.openbravo.com/erp/devel/pi/rev/a48e8a98e5ea changeset: 33195:a48e8a98e5ea user: David Miguelez <david.miguelez <at> openbravo.com> date: Thu Jan 18 17:36:48 2018 +0100 summary: Related to Issue 37279. Added sleeps to automated test cases to avoid problems while launching them in Oracle.
diffstat: src-test/src/org/openbravo/test/costing/TestCosting.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diffs (57 lines): diff -r d73c3858c8e4 -r a48e8a98e5ea src-test/src/org/openbravo/test/costing/TestCosting.java --- a/src-test/src/org/openbravo/test/costing/TestCosting.java Thu Jan 18 11:48:38 2018 +0100 +++ b/src-test/src/org/openbravo/test/costing/TestCosting.java Thu Jan 18 17:36:48 2018 +0100 @@ -8949,6 +8949,8 @@ OrderToReceiptResult results = executeOrderToReceiptFlow("product37279-A", new BigDecimal( "3.00"), new BigDecimal("1")); runCostingBackground(); + // Add sleep to avoid assert errors + Thread.sleep(1000); ShipmentInOut goodsReceipt = cloneMovement(results.getProduct().getId(), false, new BigDecimal("10"), LOCATOR1_ID, 0); completeDocument(goodsReceipt); @@ -8999,6 +9001,8 @@ OrderToReceiptResult results = executeOrderToReceiptFlow("product37279-B", new BigDecimal( "3.00"), new BigDecimal("1")); runCostingBackground(); + // Add sleep to avoid assert errors + Thread.sleep(1000); ShipmentInOut goodsReceipt = cloneMovement(results.getProduct().getId(), true, new BigDecimal("-10"), LOCATOR1_ID, 0); completeDocument(goodsReceipt); @@ -9049,6 +9053,8 @@ OrderToReceiptResult results = executeOrderToReceiptFlow("product37279-C", new BigDecimal( "3.00"), new BigDecimal("1")); runCostingBackground(); + // Add sleep to avoid assert errors + Thread.sleep(1000); ShipmentInOut returnToVendorShipment = cloneMovement(results.getProduct().getId(), false, new BigDecimal("10"), LOCATOR1_ID, 0); DocumentType rtvShipment = OBDal.getInstance().get(DocumentType.class, @@ -9101,6 +9107,8 @@ OrderToReceiptResult results = executeOrderToReceiptFlow("product37279-D", new BigDecimal( "3.00"), new BigDecimal("1")); runCostingBackground(); + // Add sleep to avoid assert errors + Thread.sleep(1000); InternalConsumption internalConsumption = createInternalConsumption(results.getProduct() .getId(), new BigDecimal("-10"), LOCATOR1_ID, 0); completeDocument(internalConsumption, PROCESSCONSUMPTION_PROCESS_ID); @@ -9150,6 +9158,8 @@ OrderToReceiptResult results = executeOrderToReceiptFlow("product37279-E", new BigDecimal( "3.00"), new BigDecimal("1")); runCostingBackground(); + // Add sleep to avoid assert errors + Thread.sleep(1000); InventoryCount physicalInventory = createPhysicalInventory("physicalInv37279-E", results.getProduct(), new BigDecimal("11"), INVENTORY_NORMAL, 0); proessInventoryCount(physicalInventory); @@ -9200,6 +9210,8 @@ OrderToReceiptResult results = executeOrderToReceiptFlow("product37279-F", new BigDecimal( "3.00"), new BigDecimal("1")); runCostingBackground(); + // Add sleep to avoid assert errors + Thread.sleep(1000); InventoryCount physicalInventory = createPhysicalInventory("physicalInv37279-F", results.getProduct(), new BigDecimal("11"), INVENTORY_OPENING, 0); proessInventoryCount(physicalInventory); ------------------------------------------------------------------------------ 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