From eabe03a8e852ff79b4f9a9d3fb076c2a7c8a5e76 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 7 Aug 2024 11:21:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=B2=E8=A1=8C?= =?UTF-8?q?=E9=98=9F=E5=88=97=E7=89=B9=E6=AE=8A=E6=83=85=E5=86=B5=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E6=89=A7=E8=A1=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fit2-zhao --- .../java/io/metersphere/service/ApiExecutionQueueService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-test/backend/src/main/java/io/metersphere/service/ApiExecutionQueueService.java b/api-test/backend/src/main/java/io/metersphere/service/ApiExecutionQueueService.java index 22c5a770d4..46ee181c8b 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/ApiExecutionQueueService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/ApiExecutionQueueService.java @@ -420,7 +420,7 @@ public class ApiExecutionQueueService { } else { // 用例/接口超时结果处理 ApiDefinitionExecResultWithBLOBs result = apiDefinitionExecResultMapper.selectByPrimaryKey(item.getReportId()); - if (result != null && StringUtils.equalsAnyIgnoreCase(result.getStatus(), ApiReportStatus.RUNNING.name())) { + if (result != null && StringUtils.equalsAnyIgnoreCase(result.getStatus(), ApiReportStatus.RUNNING.name()) && result.getStartTime() < timeout) { result.setStatus(ApiReportStatus.ERROR.name()); apiDefinitionExecResultMapper.updateByPrimaryKeySelective(result);