Merge branch '6.1.x'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user