refactor: 修改性能测试查询报告状态判断

This commit is contained in:
Captain.B 2020-07-29 13:41:31 +08:00
parent 55be1a7386
commit 999dc8654e

View File

@ -87,7 +87,7 @@ public class ReportWebSocket {
if (!session.isOpen()) {
return;
}
if (PerformanceTestStatus.Running.name().equals(report.getStatus())) {
if (StringUtils.equalsAny(report.getStatus(), PerformanceTestStatus.Running.name(), PerformanceTestStatus.Reporting.name())) {
session.getBasicRemote().sendText("refresh-" + this.refresh++);
}
Thread.sleep(20 * 1000L);