NO-JIRA speed up SecureConfigurationTest

This commit is contained in:
Clebert Suconic 2020-04-28 16:50:15 -04:00
parent 6709883d0e
commit e42d50cdc3
1 changed files with 2 additions and 2 deletions

View File

@ -286,12 +286,12 @@ public class SecureConfigurationTest extends ActiveMQTestBase {
try (Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE)) {
D destination = destinationSupplier.create(session);
MessageConsumer messageConsumer = consumerSupplier.create(destination, session);
messageConsumer.receive(1000);
Assert.assertNull(messageConsumer.receiveNoWait());
TextMessage messageToSend = session.createTextMessage(message);
session.createProducer(destination).send(messageToSend);
TextMessage received = (TextMessage) messageConsumer.receive(1000);
TextMessage received = (TextMessage) messageConsumer.receive(100);
messageRecieved = received != null ? received.getText() : null;
}
} catch (JMSException | JMSRuntimeException e) {