Merge pull request #80666 from oomichi/cleanup-ResourceEventHandlerFuncs

Remove duplicated check in ObserveEventAfterAction
This commit is contained in:
Kubernetes Prow Robot 2019-07-30 10:09:43 -07:00 committed by GitHub
commit 269183a7a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ func ObserveEventAfterAction(f *framework.Framework, eventPredicate func(*v1.Eve
e, ok := obj.(*v1.Event)
ginkgo.By(fmt.Sprintf("Considering event: \nType = [%s], Name = [%s], Reason = [%s], Message = [%s]", e.Type, e.Name, e.Reason, e.Message))
framework.ExpectEqual(ok, true)
if ok && eventPredicate(e) {
if eventPredicate(e) {
observedMatchingEvent = true
}
},