Skip to content

Commit

Permalink
Merge pull request #80666 from oomichi/cleanup-ResourceEventHandlerFuncs
Browse files Browse the repository at this point in the history
Remove duplicated check in ObserveEventAfterAction
  • Loading branch information
k8s-ci-robot authored Jul 30, 2019
2 parents bfeb7e4 + 18e3807 commit 269183a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/common/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
},
Expand Down

0 comments on commit 269183a

Please sign in to comment.