mirror of https://github.com/apache/activemq.git
resolve some timing issues with slow tests and potential jmx port clash
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@826700 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d50a3ca5ce
commit
2c73c3df8c
|
@ -79,9 +79,9 @@ public class QueueConsumerPriorityTest extends TestCase {
|
||||||
Message msg = senderSession.createTextMessage("test");
|
Message msg = senderSession.createTextMessage("test");
|
||||||
for (int i =0; i< 10000;i++) {
|
for (int i =0; i< 10000;i++) {
|
||||||
producer.send(msg);
|
producer.send(msg);
|
||||||
Assert.assertNotNull("null on iteration: " + i, highConsumer.receive(200));
|
Assert.assertNotNull("null on iteration: " + i, highConsumer.receive(500));
|
||||||
}
|
}
|
||||||
Assert.assertNull( lowConsumer.receive(500));
|
Assert.assertNull(lowConsumer.receive(2000));
|
||||||
|
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
@ -102,7 +102,7 @@ public class AMQ2021Test extends TestCase implements ExceptionListener, Uncaught
|
||||||
c1.start();
|
c1.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
assertTrue(started.await(5, TimeUnit.SECONDS));
|
assertTrue(started.await(10, TimeUnit.SECONDS));
|
||||||
|
|
||||||
Thread producer = new Thread() {
|
Thread producer = new Thread() {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class SecurityJMXTest extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testMoveMessages() throws Exception {
|
public void testMoveMessages() throws Exception {
|
||||||
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi");
|
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:1199/jmxrmi");
|
||||||
JMXConnector connector = JMXConnectorFactory.connect(url, null);
|
JMXConnector connector = JMXConnectorFactory.connect(url, null);
|
||||||
connector.connect();
|
connector.connect();
|
||||||
MBeanServerConnection connection = connector.getMBeanServerConnection();
|
MBeanServerConnection connection = connector.getMBeanServerConnection();
|
||||||
|
|
|
@ -22,6 +22,10 @@
|
||||||
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
|
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
|
||||||
|
|
||||||
<broker useJmx="true" persistent="false" xmlns="http://activemq.apache.org/schema/core" populateJMSXUserID="true">
|
<broker useJmx="true" persistent="false" xmlns="http://activemq.apache.org/schema/core" populateJMSXUserID="true">
|
||||||
|
<!-- Use a non-default port in case the default port is in use -->
|
||||||
|
<managementContext>
|
||||||
|
<managementContext connectorPort="1199"/>
|
||||||
|
</managementContext>
|
||||||
|
|
||||||
<destinations>
|
<destinations>
|
||||||
<queue physicalName="TEST.Q" />
|
<queue physicalName="TEST.Q" />
|
||||||
|
|
Loading…
Reference in New Issue