Commit 798a93b0 authored by Guillaume Surrel's avatar Guillaume Surrel
Browse files

Add a timer to the connection factory to let the server start.

parent a5c0fffc
......@@ -55,6 +55,7 @@ public class DistributionTest extends TestCase {
startAgentServer((short) 0);
ConnectionFactory cf = TcpConnectionFactory.create("localhost", 2560);
((org.objectweb.joram.client.jms.ConnectionFactory) cf).getParameters().connectingTimer = 60;
AdminModule.connect(cf);
Properties prop = new Properties();
......
......@@ -59,6 +59,7 @@ public class DistributionTest2 extends TestCase {
startAgentServer((short) 0);
ConnectionFactory cf = TcpConnectionFactory.create("localhost", 2560);
((org.objectweb.joram.client.jms.ConnectionFactory) cf).getParameters().connectingTimer = 60;
AdminModule.connect(cf);
Properties prop = new Properties();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment