Commit 501d4781 by yangfangfang

解决数据报错

parent 04b348e3
......@@ -70,7 +70,7 @@ public class TestRefundGoods extends XMBaseTest {
info.setLoginUser(LoginAccount.GYM_MINIAPPC);
try {
Thread.sleep(5000);
Thread.sleep(3000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
......@@ -90,7 +90,7 @@ public class TestRefundGoods extends XMBaseTest {
int beforeInventory=Integer.parseInt(getDetail_goods.getJSONObject("result").getJSONObject("multiSpecInfo").getJSONArray("specCombinationList").getJSONObject(0).getString("inventory"));
try {
Thread.sleep(5000);
Thread.sleep(3000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
......@@ -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"));
try {
Thread.sleep(15000);
Thread.sleep(5000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
......@@ -181,7 +181,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert.assertEquals(refundAfterInventory,refundBeforeInventory+1,"退货退款成功后,库存数应+1");
try {
Thread.sleep(15000);
Thread.sleep(20000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
......@@ -212,7 +212,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert.assertEquals(discardRefundAfterInventory,refundAfterInventory-1,"作废退货退款订单成功后,库存数应-1");
try {
Thread.sleep(15000);
Thread.sleep(5000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
......@@ -260,7 +260,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert.assertEquals(refundAfterInventory_onlyAmount, discardRefundAfterInventory, "仅退款成功后,库存数应不变");
try {
Thread.sleep(15000);
Thread.sleep(5000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
......@@ -289,7 +289,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert.assertEquals(discardRefundAfterInventory_onlyAmount, refundAfterInventory_onlyAmount, "作废仅退款订单成功后,库存数应不变");
try {
Thread.sleep(15000);
Thread.sleep(5000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
......@@ -318,7 +318,7 @@ public class TestRefundGoods extends XMBaseTest {
Assert.assertEquals(discardSignAfterInventory, discardRefundAfterInventory_onlyAmount + 1, "作废购买订单成功后,库存数应+1");
try {
Thread.sleep(15000);
Thread.sleep(5000);
} catch (InterruptedException 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