Skip to content

DefaultEventHandler should not fire events if the handler is being closed #579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

lburgazzoli
Copy link
Collaborator

@lburgazzoli lburgazzoli commented Oct 4, 2021

Fixes #578

@lburgazzoli lburgazzoli force-pushed the event-handler branch 2 times, most recently from 6da0fcb to f966d1d Compare October 4, 2021 11:10
defaultEventHandler.close();
defaultEventHandler.handleEvent(prepareCREvent());

verify(eventDispatcherMock, timeout(50).times(1)).handleExecution(any());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we not dispatch at all if the handler is closed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mh yes, don't know why I ended up with this test

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will fix it later today

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@metacosm fixed

Copy link
Collaborator

@metacosm metacosm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@metacosm metacosm merged commit e0da323 into operator-framework:master Oct 5, 2021
@metacosm metacosm deleted the event-handler branch October 5, 2021 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DefaultEventHandler should not fire events if the handler is being closed
3 participants