Commit 745a7c8c by yangfangfang

解决数据中心延迟报错

parent 465be28e
...@@ -134,7 +134,7 @@ public class TestGetCostData extends XMBaseTest { ...@@ -134,7 +134,7 @@ public class TestGetCostData extends XMBaseTest {
BigDecimal unpaidAmount = new BigDecimal(getDetailResult.getJSONObject("result").getString("unpaidAmount"));//欠费金额 BigDecimal unpaidAmount = new BigDecimal(getDetailResult.getJSONObject("result").getString("unpaidAmount"));//欠费金额
try { try {
Thread.sleep(1000); Thread.sleep(15000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
...@@ -218,7 +218,7 @@ public class TestGetCostData extends XMBaseTest { ...@@ -218,7 +218,7 @@ public class TestGetCostData extends XMBaseTest {
// BigDecimal leftAmount6=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(5).getString("leftAmount")); // BigDecimal leftAmount6=new BigDecimal(getCommodityTypeCostDetail_result.getJSONArray("records").getJSONObject(5).getString("leftAmount"));
try { try {
Thread.sleep(3000); Thread.sleep(15000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
...@@ -262,7 +262,7 @@ public class TestGetCostData extends XMBaseTest { ...@@ -262,7 +262,7 @@ public class TestGetCostData extends XMBaseTest {
try { try {
Thread.sleep(3000); Thread.sleep(15000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
......
...@@ -207,7 +207,7 @@ public class TestGoodsOrderByDeposit extends XMBaseTest { ...@@ -207,7 +207,7 @@ public class TestGoodsOrderByDeposit extends XMBaseTest {
try { try {
Thread.sleep(5000); Thread.sleep(15000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
......
...@@ -131,7 +131,7 @@ public class TestRefundGoods extends XMBaseTest { ...@@ -131,7 +131,7 @@ public class TestRefundGoods extends XMBaseTest {
int refundBeforeInventory = Integer.parseInt(lastGetDetail_goods.getJSONObject("result").getJSONObject("multiSpecInfo").getJSONArray("specCombinationList").getJSONObject(0).getString("inventory")); int refundBeforeInventory = Integer.parseInt(lastGetDetail_goods.getJSONObject("result").getJSONObject("multiSpecInfo").getJSONArray("specCombinationList").getJSONObject(0).getString("inventory"));
try { try {
Thread.sleep(8000); Thread.sleep(15000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
...@@ -168,7 +168,6 @@ public class TestRefundGoods extends XMBaseTest { ...@@ -168,7 +168,6 @@ public class TestRefundGoods extends XMBaseTest {
JSONObject refundGoods=goodTools.refundGoods(xmAppApi.getLoginInfo().getAdminId(),ownerName,quantity,refundAmount,true,voucherItemId,memberId,receivableAmount,amount,"1",new BigDecimal("0.00"),new BigDecimal("0.00"),"",0,amount,amount); JSONObject refundGoods=goodTools.refundGoods(xmAppApi.getLoginInfo().getAdminId(),ownerName,quantity,refundAmount,true,voucherItemId,memberId,receivableAmount,amount,"1",new BigDecimal("0.00"),new BigDecimal("0.00"),"",0,amount,amount);
String refundOrderId1=refundGoods.getString("result"); String refundOrderId1=refundGoods.getString("result");
//校验: //校验:
//校验1:获取B端订单详情:退单已完成状态 //校验1:获取B端订单详情:退单已完成状态
JSONObject getDetailResult_refund = orderTools.getDetail(refundOrderId1); JSONObject getDetailResult_refund = orderTools.getDetail(refundOrderId1);
...@@ -182,7 +181,7 @@ public class TestRefundGoods extends XMBaseTest { ...@@ -182,7 +181,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert.assertEquals(refundAfterInventory,refundBeforeInventory+1,"退货退款成功后,库存数应+1"); Assert.assertEquals(refundAfterInventory,refundBeforeInventory+1,"退货退款成功后,库存数应+1");
try { try {
Thread.sleep(8000); Thread.sleep(15000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
...@@ -213,7 +212,7 @@ public class TestRefundGoods extends XMBaseTest { ...@@ -213,7 +212,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert.assertEquals(discardRefundAfterInventory,refundAfterInventory-1,"作废退货退款订单成功后,库存数应-1"); Assert.assertEquals(discardRefundAfterInventory,refundAfterInventory-1,"作废退货退款订单成功后,库存数应-1");
try { try {
Thread.sleep(10000); Thread.sleep(15000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
...@@ -261,7 +260,7 @@ public class TestRefundGoods extends XMBaseTest { ...@@ -261,7 +260,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert.assertEquals(refundAfterInventory_onlyAmount, discardRefundAfterInventory, "仅退款成功后,库存数应不变"); Assert.assertEquals(refundAfterInventory_onlyAmount, discardRefundAfterInventory, "仅退款成功后,库存数应不变");
try { try {
Thread.sleep(8000); Thread.sleep(15000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
...@@ -290,7 +289,7 @@ public class TestRefundGoods extends XMBaseTest { ...@@ -290,7 +289,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert.assertEquals(discardRefundAfterInventory_onlyAmount, refundAfterInventory_onlyAmount, "作废仅退款订单成功后,库存数应不变"); Assert.assertEquals(discardRefundAfterInventory_onlyAmount, refundAfterInventory_onlyAmount, "作废仅退款订单成功后,库存数应不变");
try { try {
Thread.sleep(8000); Thread.sleep(15000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
...@@ -319,7 +318,7 @@ public class TestRefundGoods extends XMBaseTest { ...@@ -319,7 +318,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert.assertEquals(discardSignAfterInventory, discardRefundAfterInventory_onlyAmount + 1, "作废购买订单成功后,库存数应+1"); Assert.assertEquals(discardSignAfterInventory, discardRefundAfterInventory_onlyAmount + 1, "作废购买订单成功后,库存数应+1");
try { try {
Thread.sleep(8000); Thread.sleep(15000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment