[jboss-remoting-commits] JBoss Remoting SVN: r6379 - remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/socket/idle.
jboss-remoting-commits at lists.jboss.org
jboss-remoting-commits at lists.jboss.org
Fri Jun 3 21:56:53 EDT 2011
Author: ron.sigal at jboss.com
Date: 2011-06-03 21:56:53 -0400 (Fri, 03 Jun 2011)
New Revision: 6379
Modified:
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/socket/idle/ThreadPoolStackTestCase.java
Log:
JBREM-1293: In last series of invocations, allow time for the one ServerThread in use to return itself to threadpool.
Modified: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/socket/idle/ThreadPoolStackTestCase.java
===================================================================
--- remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/socket/idle/ThreadPoolStackTestCase.java 2011-06-01 03:41:30 UTC (rev 6378)
+++ remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/socket/idle/ThreadPoolStackTestCase.java 2011-06-04 01:56:53 UTC (rev 6379)
@@ -136,18 +136,19 @@
// Wait until IdleTimerTask runs at 10000.
Thread.sleep(4000); // time = 12000
- for (int i = 0; i < 6; i++)
+ for (int i = 0; i < 5; i++)
{
client = new Client(clientLocator, clientConfig);
client.connect();
log.info("i = " + i);
client.invoke("1");
client.disconnect();
+ Thread.sleep(500);
}
- // Time = 18000. IdleTimerTask will run at 20000, at which point
+ // Time = 17500. IdleTimerTask will run at 20000, at which point
// all but one ServerThread should be removed from threadpool.
- Thread.sleep(4000); // time = 22000
+ Thread.sleep(5000); // time = 22500
assertEquals(1, threadpool.size());
shutdownServer();
More information about the jboss-remoting-commits
mailing list