Author: ron.sigal(a)jboss.com
Date: 2008-11-29 22:56:41 -0500 (Sat, 29 Nov 2008)
New Revision: 4749
Modified:
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/connection/deadlock/DeadlockTestClient.java
Log:
JBREM-1070: Reduced iterations to 10; reduced ping timeout to 5000.
Modified:
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/connection/deadlock/DeadlockTestClient.java
===================================================================
---
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/connection/deadlock/DeadlockTestClient.java 2008-11-30
03:55:59 UTC (rev 4748)
+++
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/connection/deadlock/DeadlockTestClient.java 2008-11-30
03:56:41 UTC (rev 4749)
@@ -32,7 +32,6 @@
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;
-import org.jboss.logging.XLevel;
import org.jboss.remoting.Client;
import org.jboss.remoting.ConnectionListener;
import org.jboss.remoting.ConnectionValidator;
@@ -82,7 +81,7 @@
public void testForDeadlock() throws Throwable
{
log.info("entering " + getName());
- for (int i = 0; i < 20; i++)
+ for (int i = 0; i < 10; i++)
{
assertTrue("failed execution: " + i, doTest());
log.info("execution " + i + " PASSES\n");
@@ -103,7 +102,7 @@
}
InvokerLocator clientLocator = new InvokerLocator(locatorURI);
HashMap clientConfig = new HashMap();
- clientConfig.put(ConnectionValidator.VALIDATOR_PING_TIMEOUT, "10000");
+ clientConfig.put(ConnectionValidator.VALIDATOR_PING_TIMEOUT, "5000");
clientConfig.put(ConnectionValidator.VALIDATOR_PING_PERIOD, "1000");
addExtraClientConfig(clientConfig);
Client client = new Client(clientLocator, clientConfig);
Show replies by date