mirror of https://github.com/apache/activemq.git
trun off exponential backoff so that reconnect will happen before the timeout after restart, intermittent failure in hudson
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@892194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a1bdc6249
commit
08d89ff881
|
@ -28,7 +28,6 @@ import junit.framework.TestCase;
|
|||
|
||||
import org.apache.activemq.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.broker.BrokerService;
|
||||
import org.apache.activemq.broker.TransportConnector;
|
||||
|
||||
public class FailoverTimeoutTest extends TestCase {
|
||||
|
||||
|
@ -43,7 +42,7 @@ public class FailoverTimeoutTest extends TestCase {
|
|||
bs.addConnector(tcpUri);
|
||||
bs.start();
|
||||
|
||||
ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("failover:(" + tcpUri + ")?timeout=" + timeout);
|
||||
ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("failover:(" + tcpUri + ")?timeout=" + timeout + "&useExponentialBackOff=false");
|
||||
Connection connection = cf.createConnection();
|
||||
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
||||
MessageProducer producer = session.createProducer(session
|
||||
|
@ -60,10 +59,10 @@ public class FailoverTimeoutTest extends TestCase {
|
|||
}
|
||||
|
||||
bs = new BrokerService();
|
||||
|
||||
bs.setUseJmx(false);
|
||||
bs.addConnector(tcpUri);
|
||||
bs.start();
|
||||
bs.waitUntilStarted();
|
||||
|
||||
producer.send(message);
|
||||
|
||||
|
|
Loading…
Reference in New Issue