Skip to content

Conversation

@scottf
Copy link
Contributor

@scottf scottf commented Nov 19, 2025

  • Dispatcher unsubscribe by subject would unsubscribe all subject, not just target subject

* Dispatcher unsubscribe by subject would unsubscribe all subject, not just target subject
}

@Test
public void testDispatcherMultipleSubscriptionsBySubject() throws Exception {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved this to dispatcher test


public class DispatcherTests {
@Test
public void testDispatcherMultipleSubscriptionsBySubject() throws Exception {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated test to dispatcher subscribe to multiple subjects, then unsubscribe from only one, making sure that only the one subject was unsubscribed.

Ran the test against the old code, it failed as expected, against the new code it passes.

Copy link
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

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

LGTM

@scottf scottf merged commit f818418 into main Nov 19, 2025
5 checks passed
@scottf scottf deleted the dispatcher-unsub-subject branch November 19, 2025 14:05
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.

3 participants