fix(接口测试): 修复调试偶发session被清除无法停止问题

--bug=1017936 --user=赵勇 场景中添加自定义SQL请求-调试执行成功,但是显示“停止”(偶现) https://www.tapd.cn/55049933/s/1274008
This commit is contained in:
fit2-zhao 2022-10-24 12:33:02 +08:00 committed by fit2-zhao
parent da11f99b3b
commit cbafdca681
2 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,6 @@ public class MsDebugListener extends AbstractListenerElement implements SampleLi
dto.setToReport(this.getName()); dto.setToReport(this.getName());
LoggerUtil.debug("send. " + this.getName()); LoggerUtil.debug("send. " + this.getName());
WebSocketUtil.sendMessageSingle(dto); WebSocketUtil.sendMessageSingle(dto);
WebSocketUtil.onClose(this.getName());
PoolExecBlockingQueueUtil.offer(this.getName()); PoolExecBlockingQueueUtil.offer(this.getName());
} }

View File

@ -1034,6 +1034,7 @@ export default {
this.debugLoading = false; this.debugLoading = false;
this.message = "stop"; this.message = "stop";
this.stopDebug = "stop"; this.stopDebug = "stop";
this.messageWebSocket.close();
this.reload(); this.reload();
} }
}, },