mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-06 10:09:01 +00:00
NO-JIRA fix another OpenWire race
This commit is contained in:
parent
88b1371e98
commit
67964facf0
@ -729,6 +729,9 @@ public class SimpleOpenWireTest extends BasicOpenWireTest {
|
||||
TopicSession newTopicSession = newConn.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
|
||||
TopicPublisher publisher = newTopicSession.createPublisher(tempTopic);
|
||||
|
||||
// need to wait here because the ActiveMQ client's temp destination map is updated asynchronously, not waiting can introduce a race
|
||||
assertTrue(Wait.waitFor(() -> newConn.activeTempDestinations.size() == 1, 2000, 100));
|
||||
|
||||
TextMessage msg = newTopicSession.createTextMessage("Test Message");
|
||||
|
||||
publisher.publish(msg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user