Merge branch '6.1.x'

This commit is contained in:
rstoyanchev
2024-04-18 14:18:43 +01:00
2 changed files with 14 additions and 1 deletions

View File

@@ -102,6 +102,16 @@ class DefaultSubscriptionRegistryTests {
MultiValueMap<String, String> actual = this.registry.findSubscriptions(createMessage(dest));
assertThat(actual).hasSize(1);
assertThat(actual.get(sessId)).containsExactly(subId);
// Register more after destinationCache populated through findSubscriptions,
// and make sure it's still only one subscriptionId
this.registry.registerSubscription(subscribeMessage(sessId, subId, dest));
this.registry.registerSubscription(subscribeMessage(sessId, subId, dest));
actual = this.registry.findSubscriptions(createMessage(dest));
assertThat(actual).hasSize(1);
assertThat(actual.get(sessId)).containsExactly(subId);
}
@Test