fix(性能测试): 修复删除测试之后再删除报告报错的问题

This commit is contained in:
Captain.B 2021-06-22 10:39:26 +08:00 committed by 刘瑞斌
parent 748c71d1ba
commit 7a1e44353a
1 changed files with 18 additions and 16 deletions

View File

@ -96,6 +96,7 @@ public class PerformanceReportService {
LogUtil.info("Delete report started, report ID: %s" + reportId);
if (loadTest != null) {
try {
final Engine engine = EngineFactory.createEngine(loadTest);
if (engine == null) {
@ -115,6 +116,7 @@ public class PerformanceReportService {
loadTest.setStatus(PerformanceTestStatus.Saved.name());
loadTestMapper.updateByPrimaryKeySelective(loadTest);
}
}
// delete load_test_report_result
LoadTestReportResultExample loadTestReportResultExample = new LoadTestReportResultExample();