[jboss-remoting-commits] JBoss Remoting SVN: r5471 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/connection.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Mon Sep 14 12:19:38 EDT 2009


Author: ron.sigal at jboss.com
Date: 2009-09-14 12:19:38 -0400 (Mon, 14 Sep 2009)
New Revision: 5471

Modified:
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/connection/ConnectionValidatorDisconnectTimeoutTestCase.java
Log:
JBREM-1112: Extended wait for server side notification.

Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/connection/ConnectionValidatorDisconnectTimeoutTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/connection/ConnectionValidatorDisconnectTimeoutTestCase.java	2009-09-14 16:07:08 UTC (rev 5470)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/connection/ConnectionValidatorDisconnectTimeoutTestCase.java	2009-09-14 16:19:38 UTC (rev 5471)
@@ -35,7 +35,6 @@
 import org.apache.log4j.Level;
 import org.apache.log4j.Logger;
 import org.apache.log4j.PatternLayout;
-import org.jboss.logging.XLevel;
 import org.jboss.remoting.Client;
 import org.jboss.remoting.ClientDisconnectedException;
 import org.jboss.remoting.ConnectionListener;
@@ -81,7 +80,7 @@
       if (firstTime)
       {
          firstTime = false;
-         Logger.getLogger("org.jboss.remoting").setLevel(XLevel.INFO);
+         Logger.getLogger("org.jboss.remoting").setLevel(Level.INFO);
          Logger.getLogger("org.jboss.test.remoting").setLevel(Level.INFO);
          String pattern = "[%d{ABSOLUTE}] [%t] %5p (%F:%L) - %m%n";
          PatternLayout layout = new PatternLayout(pattern);
@@ -246,7 +245,7 @@
       client.addConnectionListener(clientConnectionListener, new HashMap());
       
       // Wait for broken connection and test.
-      Thread.sleep(8000);
+      Thread.sleep(12000);
       assertTrue(serverConnectionListener.notified);
       assertNull(serverConnectionListener.throwable);
       assertTrue(clientConnectionListener.notified);
@@ -330,7 +329,7 @@
       client.addConnectionListener(clientConnectionListener, new HashMap());
       
       // Wait for broken connection and test.
-      Thread.sleep(8000);
+      Thread.sleep(12000);
       assertTrue(serverConnectionListener.notified);
       assertNull(serverConnectionListener.throwable);
       assertTrue(clientConnectionListener.notified);



More information about the jboss-remoting-commits mailing list