no jira - fix intermittent test failure

This commit is contained in:
gtully 2019-09-25 14:08:17 +01:00
parent 644b529ef6
commit 1c5beda834
1 changed files with 2 additions and 1 deletions

View File

@ -667,7 +667,7 @@ public class FailoverTransactionTest extends TestSupport {
connection.start();
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
Queue destination = session.createQueue(QUEUE_NAME);
Queue destination = session.createQueue("testFailoverWithConnectionConsumer");
final CountDownLatch connectionConsumerGotOne = new CountDownLatch(1);
final Session poolSession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
@ -903,6 +903,7 @@ public class FailoverTransactionTest extends TestSupport {
configureConnectionFactory(cf);
Connection connection = cf.createConnection();
connection.start();
connections.add(connection);
Session producerSession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
final Queue destination = producerSession.createQueue(QUEUE_NAME + "?consumer.prefetchSize=1");