Commit 0818163b authored by Andre Freyssinet's avatar Andre Freyssinet

Fix socket timeout to work-around the default set now to 10s.

parent 99182e3b
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2001 - 2009 ScalAgent Distributed Technologies
* Copyright (C) 2001 - 2019 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -66,6 +66,7 @@ public class JndiTest2 extends TestCase {
env2.put(NAMING_HOST_PROP, LOCALHOST);
env2.put(NAMING_PORT_PROP, "16682");
System.setProperty("fr.dyade.aaa.jndi2.socketTimeOut", "30000");
InitialContext ctx0 = new InitialContext(env0);
InitialContext ctx1 = new InitialContext(env1);
InitialContext ctx2 = new InitialContext(env2);
......@@ -86,6 +87,7 @@ public class JndiTest2 extends TestCase {
try {
ctx2.createSubcontext("/A/B/C/D");
} catch (Exception exc) {
exc.printStackTrace();
excp = exc;
}
assertTrue(excp == null);
......
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2001 - 2009 ScalAgent Distributed Technologies
* Copyright (C) 2001 - 2019 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -67,6 +67,7 @@ public class JndiTest3 extends TestCase {
env2.put(NAMING_HOST_PROP, LOCALHOST);
env2.put(NAMING_PORT_PROP, "16683");
System.setProperty("fr.dyade.aaa.jndi2.socketTimeOut", "30000");
InitialContext ctx0 = new InitialContext(env0);
InitialContext ctx1 = new InitialContext(env1);
InitialContext ctx2 = new InitialContext(env2);
......
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