You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix flaky test TestActionDispatcher/Dispatch_multiple_events_returns_one_error (#5366)
I have introduced the following changes:
- Removed the `time.Sleep` calls in favor of waiting on the completion of the `Dispatch` method.
- Changed the handler mock to return two errors instead of one, and assert that only the second error is put on the errors channel.
- Narrowed down `mock.Anything` parameters in the `Handle` method mock to specific variables `dispatchCtx`, `action1|2`, `ack`.
0 commit comments