fix(测试跟踪): 测试计划个别接口用例执行一直转圈

--bug=1020841 --user=陈建星 【测试跟踪】github#20605,测试计划中执行某个case,一直在转圈 https://www.tapd.cn/55049933/s/1316462
This commit is contained in:
chenjianxing 2022-12-16 17:24:53 +08:00 committed by jianxing
parent c6c0ebdac5
commit fa37019f77
2 changed files with 8 additions and 7 deletions

View File

@ -65,6 +65,9 @@ export default {
} else {
this.$EventBus.$emit('API_TEST_ERROR', this.reportId);
}
} else {
this.loading = true;
this.socketSync();
}
});
}

View File

@ -511,13 +511,11 @@ export default {
singleRun(row) {
let reportId = getUUID().substring(0, 8);
this.rowLoading = row.id;
run(row.id, reportId)
.then(() => {
this.runningReport.add(reportId);
// websock
// websock
this.$refs.apiCaseResult.open(reportId);
},error =>{
this.rowLoading = "";
});
run(row.id, reportId);
},
handleTestEnd(reportId) {
if (this.runningReport.has(reportId)) {