mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #80666 from oomichi/cleanup-ResourceEventHandlerFuncs
Remove duplicated check in ObserveEventAfterAction
This commit is contained in:
commit
269183a7a8
@ -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
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user