Skip to content

Commit

Permalink
evetestkit : AppWaitForRunningState detect halting state
Browse files Browse the repository at this point in the history
Signed-off-by: Shahriyar Jalayeri <[email protected]>
  • Loading branch information
shjala committed Sep 4, 2024
1 parent b4063e9 commit 1fd58e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/evetestkit/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,13 @@ func (node *EveNode) AppWaitForRunningState(appName string, timeoutSeconds uint)
if err != nil {
return err
}
state = strings.ToLower(state)

if strings.ToLower(state) == "running" {
if strings.Contains(state, "halting") {
return fmt.Errorf("app %s is in halting state", appName)
}

if state == "running" {
return nil
}

Expand Down

0 comments on commit 1fd58e3

Please sign in to comment.