Author: ron.sigal(a)jboss.com
Date: 2011-06-03 21:58:06 -0400 (Fri, 03 Jun 2011)
New Revision: 6380
Modified:
remoting2/branches/2.x/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.x/src/tests/org/jboss/test/remoting/transport/socket/idle/ThreadPoolStackTestCase.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/idle/ThreadPoolStackTestCase.java 2011-06-04
01:56:53 UTC (rev 6379)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/idle/ThreadPoolStackTestCase.java 2011-06-04
01:58:06 UTC (rev 6380)
@@ -135,18 +135,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();
Show replies by date