func WaitTimeoutForEvent(ctx context.Context, c clientset.Interface, namespace, eventSelector, msg string, timeout time.Duration) error
WaitTimeoutForEvent waits the given timeout duration for an event to occur. Please note delivery of events is not guaranteed. Asserting on events can lead to flaky tests.
Action is a function to be performed by the system.
type Action func() error