Skip to content

Commit

Permalink
cloud: abort on timeout run status
Browse files Browse the repository at this point in the history
  • Loading branch information
yorugac committed Nov 6, 2024
1 parent 36bcf0d commit 556216b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cloud/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 556216b

Please sign in to comment.