From 537e6aa3f4d3bdfdb1bd031f18928b0001970e16 Mon Sep 17 00:00:00 2001 From: Thandayuthapani Date: Wed, 12 Jun 2019 18:25:02 +0530 Subject: [PATCH] Add event reason check since change in event --- test/e2e/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/util.go b/test/e2e/util.go index 287ed01a99..1b41e41224 100644 --- a/test/e2e/util.go +++ b/test/e2e/util.go @@ -418,7 +418,7 @@ func podGroupUnschedulable(ctx *context, pg *kbv1.PodGroup, time time.Time) wait for _, event := range events.Items { target := event.InvolvedObject if target.Name == pg.Name && target.Namespace == pg.Namespace { - if event.Reason == string(kbv1.PodGroupUnschedulableType) && + if event.Reason == string(kbv1.PodGroupUnschedulableType) || event.Reason == string("FailedScheduling") && event.LastTimestamp.After(time) { return true, nil }