NO-JIRA speed up SecureConfigurationTest
This commit is contained in:
parent
6709883d0e
commit
e42d50cdc3
|
@ -286,12 +286,12 @@ public class SecureConfigurationTest extends ActiveMQTestBase {
|
||||||
try (Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE)) {
|
try (Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE)) {
|
||||||
D destination = destinationSupplier.create(session);
|
D destination = destinationSupplier.create(session);
|
||||||
MessageConsumer messageConsumer = consumerSupplier.create(destination, session);
|
MessageConsumer messageConsumer = consumerSupplier.create(destination, session);
|
||||||
messageConsumer.receive(1000);
|
Assert.assertNull(messageConsumer.receiveNoWait());
|
||||||
|
|
||||||
TextMessage messageToSend = session.createTextMessage(message);
|
TextMessage messageToSend = session.createTextMessage(message);
|
||||||
session.createProducer(destination).send(messageToSend);
|
session.createProducer(destination).send(messageToSend);
|
||||||
|
|
||||||
TextMessage received = (TextMessage) messageConsumer.receive(1000);
|
TextMessage received = (TextMessage) messageConsumer.receive(100);
|
||||||
messageRecieved = received != null ? received.getText() : null;
|
messageRecieved = received != null ? received.getText() : null;
|
||||||
}
|
}
|
||||||
} catch (JMSException | JMSRuntimeException e) {
|
} catch (JMSException | JMSRuntimeException e) {
|
||||||
|
|
Loading…
Reference in New Issue