refactor(性能测试): 启动失败之后删除报告

This commit is contained in:
Captain.B 2021-08-06 11:10:57 +08:00 committed by 刘瑞斌
parent 724d0d32f9
commit b2713b10f0
1 changed files with 1 additions and 0 deletions

View File

@ -391,6 +391,7 @@ public class PerformanceTestService {
loadTest.setStatus(PerformanceTestStatus.Error.name());
loadTest.setDescription(e.getMessage());
loadTestMapper.updateByPrimaryKeySelective(loadTest);
loadTestReportMapper.deleteByPrimaryKey(testReport.getId());
throw e;
}
}