Fix Timing Problem with JmsDestinationBackedMessageTests - Wait for Listener Container Consumer Registration - needed in the topic by name test too
This commit is contained in:
@@ -188,6 +188,9 @@ public class JmsDestinationBackedMessageChannelTests {
|
||||
new JmsDestinationBackedMessageChannel(this.connectionFactory, "dynamicTopic", true);
|
||||
channel.afterPropertiesSet();
|
||||
channel.start();
|
||||
if (!channel.waitRegisteredWithDestination(10000)) {
|
||||
fail("Listener failed to subscribe to topic");
|
||||
}
|
||||
channel.subscribe(handler1);
|
||||
channel.subscribe(handler2);
|
||||
channel.send(new StringMessage("foo"));
|
||||
|
||||
Reference in New Issue
Block a user