refactor(性能测试): 启动失败之后删除报告
This commit is contained in:
parent
724d0d32f9
commit
b2713b10f0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue