Skip to content

Commit

Permalink
refactor: 修改性能测试查询报告状态判断
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin committed Jul 29, 2020
1 parent 55be1a7 commit 999dc86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void run() {
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);
Expand Down

0 comments on commit 999dc86

Please sign in to comment.