Skip to content

Commit

Permalink
Merge pull request volcano-sh#226 from thandayuthapani/master
Browse files Browse the repository at this point in the history
Fix E2E because of Event Change
  • Loading branch information
volcano-sh-bot committed Jun 12, 2019
2 parents af87ad8 + 2db429a commit bcd0175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func jobUnschedulable(ctx *context, job *vkv1.Job, now time.Time) error {
for _, event := range events.Items {
target := event.InvolvedObject
if strings.HasPrefix(target.Name, pg.Name) && target.Namespace == pg.Namespace {
if event.Reason == string("Unschedulable") && event.LastTimestamp.After(now) {
if event.Reason == string("Unschedulable") || event.Reason == string("FailedScheduling") && event.LastTimestamp.After(now) {
return true, nil
}
}
Expand Down

0 comments on commit bcd0175

Please sign in to comment.