mirror of https://github.com/apache/activemq.git
a little more time for slow networks
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@746191 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
184761a119
commit
ae2a3e2182
|
@ -57,7 +57,7 @@ public class DuplexNetworkMBeanTest extends TestCase {
|
||||||
public void testMbeanPresenceOnNetworkBrokerRestart() throws Exception {
|
public void testMbeanPresenceOnNetworkBrokerRestart() throws Exception {
|
||||||
BrokerService broker = createBroker();
|
BrokerService broker = createBroker();
|
||||||
broker.start();
|
broker.start();
|
||||||
assertEquals(1, countMbeans(broker, "Connector", 5000));
|
assertEquals(1, countMbeans(broker, "Connector", 10000));
|
||||||
assertEquals(0, countMbeans(broker, "Connection"));
|
assertEquals(0, countMbeans(broker, "Connection"));
|
||||||
BrokerService networkedBroker = null;
|
BrokerService networkedBroker = null;
|
||||||
for (int i=0; i<numRestarts; i++) {
|
for (int i=0; i<numRestarts; i++) {
|
||||||
|
@ -82,7 +82,7 @@ public class DuplexNetworkMBeanTest extends TestCase {
|
||||||
|
|
||||||
BrokerService networkedBroker = createNetworkedBroker();
|
BrokerService networkedBroker = createNetworkedBroker();
|
||||||
networkedBroker.start();
|
networkedBroker.start();
|
||||||
assertEquals(1, countMbeans(networkedBroker, "Connector", 2000));
|
assertEquals(1, countMbeans(networkedBroker, "Connector", 10000));
|
||||||
assertEquals(0, countMbeans(networkedBroker, "Connection"));
|
assertEquals(0, countMbeans(networkedBroker, "Connection"));
|
||||||
|
|
||||||
BrokerService broker = null;
|
BrokerService broker = null;
|
||||||
|
|
Loading…
Reference in New Issue