NO-JIRA Speeding test and intermittent failure

This commit is contained in:
Clebert Suconic 2020-06-29 21:39:49 -04:00
parent 663c1d67d4
commit 3d746d3b23
3 changed files with 5 additions and 1 deletions

View File

@ -485,6 +485,8 @@ public class RedeployTest extends ActiveMQTestBase {
deployBrokerConfig(embeddedActiveMQ, newConfig);
Wait.waitFor(() -> embeddedActiveMQ.getActiveMQServer().getPostOffice()
.getBinding(new SimpleString("divert")) == null);
divertBinding = (DivertBinding) embeddedActiveMQ.getActiveMQServer().getPostOffice()
.getBinding(new SimpleString("divert"));
assertNull(divertBinding);
@ -500,7 +502,7 @@ public class RedeployTest extends ActiveMQTestBase {
Message message = session.createTextMessage("Hello world");
sourceProducer.send(message);
assertNotNull(sourceConsumer.receive(2000));
assertNull(targetConsumer.receive(2000));
assertNull(targetConsumer.receiveNoWait());
}
} finally {
embeddedActiveMQ.stop();

View File

@ -25,6 +25,7 @@ under the License.
<core xmlns="urn:activemq:core">
<security-enabled>false</security-enabled>
<persistence-enabled>false</persistence-enabled>
<configuration-file-refresh-period>100</configuration-file-refresh-period>
<acceptors>
<acceptor name="artemis">tcp://0.0.0.0:61616</acceptor>

View File

@ -25,6 +25,7 @@ under the License.
<core xmlns="urn:activemq:core">
<security-enabled>false</security-enabled>
<persistence-enabled>false</persistence-enabled>
<configuration-file-refresh-period>100</configuration-file-refresh-period>
<acceptors>
<acceptor name="artemis">tcp://0.0.0.0:61616</acceptor>