Skip to content
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

Add Replay event to event listener command handler #335

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

sanintel3
Copy link
Contributor

No description provided.

@@ -99,6 +101,25 @@ public void shouldGetEventRange() throws Exception {
assertThat(publishedEvents.get(2).getId(), is(event_3.getId()));
}

@Test
public void fetchByEventIdShouldRetunEventIfExists() throws Exception {
final Connection connection = dataSource.getConnection();
Copy link
Member

Choose a reason for hiding this comment

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

I know this is only a test, but it still might be better to close the connection at the end of the test. I'd use try with resources

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just had a look and data connection is getting closed explicitly in @after method in this test

@sanintel3 sanintel3 merged commit c403a64 into release-8.x.x Apr 9, 2024
2 checks passed
@sanintel3 sanintel3 deleted the replay-event-to-event-lisetner branch April 9, 2024 19:33
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.

None yet

2 participants