Author: ron.sigal(a)jboss.com
Date: 2008-05-01 17:57:23 -0400 (Thu, 01 May 2008)
New Revision: 4111
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup/JNDIDetectorClient.java
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup/JNDIDetectorServer.java
Log:
JBREM-930: Add extra time for server to be registered.
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup/JNDIDetectorClient.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup/JNDIDetectorClient.java 2008-05-01
21:01:12 UTC (rev 4110)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup/JNDIDetectorClient.java 2008-05-01
21:57:23 UTC (rev 4111)
@@ -72,6 +72,7 @@
public void testDetection() throws Exception
{
detector.start();
+ Thread.sleep(4000);
long start = System.currentTimeMillis();
NetworkInstance[] instances = detector.forceDetection();
long end = System.currentTimeMillis();
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup/JNDIDetectorServer.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup/JNDIDetectorServer.java 2008-05-01
21:01:12 UTC (rev 4110)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup/JNDIDetectorServer.java 2008-05-01
21:57:23 UTC (rev 4111)
@@ -101,7 +101,7 @@
detector.setContextFactory(contextFactory);
detector.setURLPackage(urlPackage);
detector.start();
-
+ Thread.sleep(10000);
}
public void tearDown() throws Exception
Show replies by date