fix(接口测试): 测试计划无法结束

This commit is contained in:
AgAngle 2024-11-21 18:55:06 +08:00 committed by Craftsman
parent e278bfa93e
commit aaf5ffd470
2 changed files with 10 additions and 0 deletions

View File

@ -125,6 +125,11 @@ public class PlanRunTestPlanApiCaseService {
List<ExecTaskItem> execTaskItems = apiBatchRunBaseService.getExecTaskItemByTaskIdAndCollectionId(testPlanExecutionQueue.getTaskId(),
collection.getId(), testPlanExecutionQueue.isRerun());
if (CollectionUtils.isEmpty(execTaskItems)) {
return true;
}
SubListUtils.dealForSubList(execTaskItems, ApiBatchRunBaseService.BATCH_TASK_ITEM_SIZE, subExecTaskItems -> {
List<TaskItem> taskItems = subExecTaskItems
.stream()

View File

@ -120,6 +120,11 @@ public class PlanRunTestPlanApiScenarioService {
List<ExecTaskItem> execTaskItems = apiBatchRunBaseService.getExecTaskItemByTaskIdAndCollectionId(testPlanExecutionQueue.getTaskId(),
collection.getId(), testPlanExecutionQueue.isRerun());
if (CollectionUtils.isEmpty(execTaskItems)) {
return true;
}
SubListUtils.dealForSubList(execTaskItems, ApiBatchRunBaseService.BATCH_TASK_ITEM_SIZE, subExecTaskItems -> {
List<TaskItem> taskItems = subExecTaskItems
.stream()