From 556216b4b1a99682fcdca260852e3fcfa20e7fa1 Mon Sep 17 00:00:00 2001 From: Olha Yevtushenko Date: Wed, 6 Nov 2024 19:02:59 +0200 Subject: [PATCH] cloud: abort on timeout run status --- pkg/cloud/types.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cloud/types.go b/pkg/cloud/types.go index ea021cfe..395ac1e5 100644 --- a/pkg/cloud/types.go +++ b/pkg/cloud/types.go @@ -98,7 +98,9 @@ func (lz *LZConfig) EnvVars() []corev1.EnvVar { type TestRunStatus cloudapi.RunStatus func (trs TestRunStatus) Aborted() bool { - return cloudapi.RunStatus(trs) >= cloudapi.RunStatusAbortedUser + // Abort: on timeout, on any kind of abort and on archived. + // Ref.: https://github.com/grafana/k6/blob/master/cloudapi/run_status.go + return cloudapi.RunStatus(trs) >= cloudapi.RunStatusTimedOut } // func (trs TestRunStatus) String() string {