[jboss-remoting-commits] JBoss Remoting SVN: r4096 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Wed Apr 30 01:15:46 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-04-30 01:15:45 -0400 (Wed, 30 Apr 2008)
New Revision: 4096

Modified:
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/TestServer.java
Log:
JBREM-930: Restricted time spent waiting on invocationDone.

Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/TestServer.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/TestServer.java	2008-04-30 01:18:21 UTC (rev 4095)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/ssl/serversocketrefresh/TestServer.java	2008-04-30 05:15:45 UTC (rev 4096)
@@ -110,10 +110,12 @@
 	public void test() throws Exception
 	{
        log.info("entering test()");
-	   while(!invocationDone)
+	   for (int i = 0; i < 5; i++)
 	   {
-	      Thread.sleep(1000);
+	      if (invocationDone) break;
+	      Thread.sleep(2000);
 	   }
+	   assertTrue(invocationDone);
        log.info("invocation done");
 	   String keyStorePath2 = this.getClass().getResource("certificate/serverTrustStore2").getFile();
 	   ((SocketServerInvoker) connector.getServerInvoker()).setNewServerSocketFactory(createServerSocketFactory(keyStorePassword,trustStorePassword,keyStorePath,keyStorePath2));




More information about the jboss-remoting-commits mailing list