test: stabilize random order cancellation cases
Some checks failed
Build and Push Backend / docker (push) Failing after 12s
Some checks failed
Build and Push Backend / docker (push) Failing after 12s
This commit is contained in:
@@ -54,6 +54,7 @@ class WxCustomRandomOrderApiTest extends WxCustomOrderApiTestSupport {
|
||||
private static final String CLERK_RANDOM_ORDER_ENABLED = "1";
|
||||
private static final String CLERK_FIXING_LEVEL = "1";
|
||||
private static final String CLERK_ONBOARDING_STATE = "1";
|
||||
private static final BigDecimal HIGH_BALANCE = new BigDecimal("1000.00");
|
||||
|
||||
@MockBean
|
||||
private NotificationSender notificationSender;
|
||||
@@ -275,6 +276,7 @@ class WxCustomRandomOrderApiTest extends WxCustomOrderApiTestSupport {
|
||||
String adminToken = null;
|
||||
try {
|
||||
resetCustomerBalance();
|
||||
setCustomerBalance(HIGH_BALANCE);
|
||||
customerToken = wxTokenService.createWxUserToken(ApiTestDataSeeder.DEFAULT_CUSTOMER_ID);
|
||||
customUserInfoService.updateTokenById(ApiTestDataSeeder.DEFAULT_CUSTOMER_ID, customerToken);
|
||||
|
||||
@@ -321,6 +323,7 @@ class WxCustomRandomOrderApiTest extends WxCustomOrderApiTestSupport {
|
||||
String adminToken = null;
|
||||
try {
|
||||
resetCustomerBalance();
|
||||
setCustomerBalance(HIGH_BALANCE);
|
||||
customerToken = wxTokenService.createWxUserToken(ApiTestDataSeeder.DEFAULT_CUSTOMER_ID);
|
||||
customUserInfoService.updateTokenById(ApiTestDataSeeder.DEFAULT_CUSTOMER_ID, customerToken);
|
||||
|
||||
@@ -464,7 +467,7 @@ class WxCustomRandomOrderApiTest extends WxCustomOrderApiTestSupport {
|
||||
}
|
||||
ensureTenantContext();
|
||||
PlayPersonnelAdminInfoEntity entity = new PlayPersonnelAdminInfoEntity();
|
||||
entity.setId("admin-info-" + sysUserId);
|
||||
entity.setId(IdUtils.getUuid());
|
||||
entity.setTenantId(ApiTestDataSeeder.DEFAULT_TENANT_ID);
|
||||
entity.setSysUserId(sysUserId);
|
||||
entity.setSysUserCode(sysUserCode);
|
||||
|
||||
Reference in New Issue
Block a user