Author: ron.sigal(a)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));
Show replies by date