Commit f84ffab3 authored by Andre Freyssinet's avatar Andre Freyssinet

Fix the timeout to ensure the execution of the test.

parent efc06754
......@@ -49,7 +49,7 @@ public class BridgeTest extends TestCase {
System.out.println("servers start");
startAgentServer((short)0, new String[]{"-DTransaction.UseLockFile=false"});
startAgentServer((short)1, new String[]{"-DTransaction.UseLockFile=false"});
Thread.sleep(10000);
Thread.sleep(20000);
// admin();
javax.naming.Context jndiCtx = new javax.naming.InitialContext();
......
......@@ -77,7 +77,7 @@ public class BridgeTest2 extends TestCase {
startAgentServer((short)0, new String[]{"-DTransaction.UseLockFile=false"});
startAgentServer((short)1, new String[]{"-DTransaction.UseLockFile=false"});
//admin();
Thread.sleep(10000);
Thread.sleep(20000);
javax.naming.Context jndiCtx = new javax.naming.InitialContext();
Destination joramDest = (Destination) jndiCtx.lookup("joramTopic");
......
......@@ -54,7 +54,7 @@ public class BridgeTest3 extends TestCase {
System.out.println("servers start");
startAgentServer((short)0, new String[]{"-DTransaction.UseLockFile=false"});
startAgentServer((short)1, new String[]{"-DTransaction.UseLockFile=false"});
Thread.sleep(10000);
Thread.sleep(20000);
boolean async = Boolean.getBoolean("async");
......
......@@ -54,7 +54,7 @@ public class BridgeTest4 extends TestCase {
System.out.println("servers start");
startAgentServer((short)0, new String[]{"-DTransaction.UseLockFile=false"});
startAgentServer((short)1, new String[]{"-DTransaction.UseLockFile=false"});
Thread.sleep(10000);
Thread.sleep(20000);
javax.naming.Context jndiCtx = new javax.naming.InitialContext();
Destination foreignDest = (Destination) jndiCtx.lookup("foreignQueue");
......
......@@ -48,7 +48,7 @@ public class BridgeTest5 extends TestCase {
startAgentServer((short)0);
startAgentServer((short)1);
Thread.sleep(10000);
Thread.sleep(20000);
System.out.println("admin config ok");
javax.naming.Context jndiCtx = new javax.naming.InitialContext();
......
......@@ -48,7 +48,7 @@ public class BridgeTest6 extends TestCase {
startAgentServer((short)0);
startAgentServer((short)1);
Thread.sleep(10000);
Thread.sleep(20000);
System.out.println("admin config ok");
javax.naming.Context jndiCtx = new javax.naming.InitialContext();
......
......@@ -67,7 +67,7 @@ public class BridgeTest8x extends TestCase {
System.out.println("servers start");
startAgentServer((short)0, new String[]{"-DTransaction.UseLockFile=false"});
startAgentServer((short)1, new String[]{"-DTransaction.UseLockFile=false"});
Thread.sleep(10000);
Thread.sleep(15000);
{
// Administration code
......
......@@ -45,7 +45,8 @@ public class TestDmq6 extends TestCase {
System.out.println("server start");
startAgentServer((short)0);
Thread.sleep(10000);
// Wait for XML administration scripts execution.
Thread.sleep(15000);
AdminModule.connect("localhost", 2560,"root", "root", 60);
System.out.println("admin ok");
......
......@@ -54,7 +54,7 @@ public class Test1 extends framework.TestCase {
Thread.sleep(1000L);
ConnectionFactory cf = TcpConnectionFactory.create("localhost", 2560);
((TcpConnectionFactory) cf).getParameters().connectingTimer = 10;
((TcpConnectionFactory) cf).getParameters().connectingTimer = 60;
AdminModule.connect(cf, "root", "root");
User.create("anonymous", "anonymous", 0);
......
......@@ -52,7 +52,7 @@ public class Test2 extends framework.TestCase {
Thread.sleep(1000L);
ConnectionFactory cf = TcpConnectionFactory.create("localhost", 2560);
((TcpConnectionFactory) cf).getParameters().connectingTimer = 10;
((TcpConnectionFactory) cf).getParameters().connectingTimer = 60;
((TcpConnectionFactory) cf).getParameters().clientID = "Test2";
AdminModule.connect(cf, "root", "root");
......
......@@ -53,7 +53,7 @@ public class Test3 extends TestCase {
Thread.sleep(1000L);
ConnectionFactory cf = TcpConnectionFactory.create("localhost", 2560);
((TcpConnectionFactory) cf).getParameters().connectingTimer = 10;
((TcpConnectionFactory) cf).getParameters().connectingTimer = 60;
AdminModule.connect(cf, "root", "root");
User.create("anonymous", "anonymous", 0);
......
......@@ -54,7 +54,7 @@ public class Test4 extends framework.TestCase {
Thread.sleep(1000L);
ConnectionFactory cf = TcpConnectionFactory.create("localhost", 2560);
((TcpConnectionFactory) cf).getParameters().connectingTimer = 10;
((TcpConnectionFactory) cf).getParameters().connectingTimer = 60;
((TcpConnectionFactory) cf).getParameters().clientID = "Test4";
AdminModule.connect(cf, "root", "root");
......
......@@ -53,7 +53,7 @@ public class Test5 extends TestCase {
Thread.sleep(2000L);
ConnectionFactory cf = TcpConnectionFactory.create("localhost",2560 );
((TcpConnectionFactory) cf).getParameters().connectingTimer = 10;
((TcpConnectionFactory) cf).getParameters().connectingTimer = 60;
AdminModule.connect(cf, "root", "root");
User.create("anonymous", "anonymous", 0);
......
......@@ -55,7 +55,7 @@ public class Test6 extends TestCase {
public void run() {
try {
ConnectionFactory cf = TcpConnectionFactory.create("localhost",2560 );
((TcpConnectionFactory) cf).getParameters().connectingTimer = 10;
((TcpConnectionFactory) cf).getParameters().connectingTimer = 60;
((TcpConnectionFactory) cf).getParameters().clientID = "cnx_dursub";
AdminModule.connect(cf, "root", "root");
......
......@@ -53,7 +53,7 @@ public class Test6b extends TestCase {
error(new Exception("A telnet port must be specified to use stopAgentServerExt"));
}
ConnectionFactory cf = TcpConnectionFactory.create("localhost",2560 );
((TcpConnectionFactory) cf).getParameters().connectingTimer = 10;
((TcpConnectionFactory) cf).getParameters().connectingTimer = 60;
AdminModule.connect(cf, "root", "root");
Topic topic = Topic.create("topic");
......
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