From e42d50cdc34c54ff8ef4e9bdd3d438a94ef403ce Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Tue, 28 Apr 2020 16:50:15 -0400 Subject: [PATCH] NO-JIRA speed up SecureConfigurationTest --- .../tests/integration/server/SecureConfigurationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/SecureConfigurationTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/SecureConfigurationTest.java index 16447e331b..db1a04d898 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/SecureConfigurationTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/SecureConfigurationTest.java @@ -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) {