[jboss-remoting-commits] JBoss Remoting SVN: r4111 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Thu May 1 17:57:23 EDT 2008


Author: ron.sigal at 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




More information about the jboss-remoting-commits mailing list