fix(接口测试): 场景定时任务执行,通知报错

--bug=1043872 --user=陈建星 定时任务执行场景,发送通知后台报空指针 https://www.tapd.cn/55049933/s/1548525
This commit is contained in:
AgAngle 2024-07-15 20:34:13 +08:00 committed by 刘瑞斌
parent fabac76ce9
commit e045eb3b32
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ public class ApiScenarioScheduleJob extends BaseScheduleJob {
taskInfo.getRunModeConfig().setPoolId(apiRunModeConfigDTO.getPoolId()); taskInfo.getRunModeConfig().setPoolId(apiRunModeConfigDTO.getPoolId());
taskInfo.setSaveResult(true); taskInfo.setSaveResult(true);
taskInfo.setRealTime(false); taskInfo.setRealTime(false);
taskInfo.setUserId(userId);
taskInfo.getRunModeConfig().setEnvironmentId(parseParam.getEnvironmentId()); taskInfo.getRunModeConfig().setEnvironmentId(parseParam.getEnvironmentId());
taskItem.setRequestCount(tmpParam.getRequestCount().get()); taskItem.setRequestCount(tmpParam.getRequestCount().get());