Commit fe182be9 by xuyamei

解决报错,增加编辑课次人数后延时

parent c5538e42
...@@ -231,8 +231,9 @@ public class TestAddMemberReserve extends BaseTestImpl { ...@@ -231,8 +231,9 @@ public class TestAddMemberReserve extends BaseTestImpl {
public void testAddMemberReserve3(){ public void testAddMemberReserve3(){
// 修改课次人数上限为1 // 修改课次人数上限为1
groupScheduleTools.editGroupSchedule(scheduleId,startTime,xmAppApi.getLoginInfo().getAdminId(),1,1); groupScheduleTools.editGroupSchedule(scheduleId,startTime,xmAppApi.getLoginInfo().getAdminId(),1,1);
try { try {
Thread.sleep(2000); Thread.sleep(3000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
...@@ -242,7 +243,11 @@ public class TestAddMemberReserve extends BaseTestImpl { ...@@ -242,7 +243,11 @@ public class TestAddMemberReserve extends BaseTestImpl {
Random random = new Random(); Random random = new Random();
int bookingSeatCount = random.nextInt(10)+1; // 席位 int bookingSeatCount = random.nextInt(10)+1; // 席位
ruleTools.saveGroupBookingRules(id,false,bookingSeatCount,true,true,random.nextInt(30)+10,true,random.nextInt(100)+10,random.nextInt(5)+1,true,random.nextInt(100)+10,"minutes",true,random.nextInt(100)+10,"minutes"); ruleTools.saveGroupBookingRules(id,false,bookingSeatCount,true,true,random.nextInt(30)+10,true,random.nextInt(100)+10,random.nextInt(5)+1,true,random.nextInt(100)+10,"minutes",true,random.nextInt(100)+10,"minutes");
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
// 新学员 购买卡 // 新学员 购买卡
String memberId2 = ""; String memberId2 = "";
// 查询存量的学员没有则创建学员 // 查询存量的学员没有则创建学员
......
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