[jboss-cvs] JBoss Messaging SVN: r7706 - in trunk: tests/src/org/jboss/messaging/tests/integration/remoting and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Aug 11 04:45:41 EDT 2009
Author: timfox
Date: 2009-08-11 04:45:40 -0400 (Tue, 11 Aug 2009)
New Revision: 7706
Modified:
trunk/src/main/org/jboss/messaging/core/remoting/impl/RemotingConnectionImpl.java
trunk/tests/src/org/jboss/messaging/tests/integration/remoting/PingTest.java
Log:
added more debug for fixing tests
Modified: trunk/src/main/org/jboss/messaging/core/remoting/impl/RemotingConnectionImpl.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/remoting/impl/RemotingConnectionImpl.java 2009-08-11 06:52:26 UTC (rev 7705)
+++ trunk/src/main/org/jboss/messaging/core/remoting/impl/RemotingConnectionImpl.java 2009-08-11 08:45:40 UTC (rev 7706)
@@ -104,6 +104,8 @@
{
this(transportConnection, -1, interceptors, active, false);
+
+ log.info("Created remotingconnection " + this + " on server");
}
private RemotingConnectionImpl(final Connection transportConnection,
Modified: trunk/tests/src/org/jboss/messaging/tests/integration/remoting/PingTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/integration/remoting/PingTest.java 2009-08-11 06:52:26 UTC (rev 7705)
+++ trunk/tests/src/org/jboss/messaging/tests/integration/remoting/PingTest.java 2009-08-11 08:45:40 UTC (rev 7706)
@@ -198,6 +198,8 @@
assertNull(serverListener.getException());
RemotingConnection serverConn2 = server.getRemotingService().getConnections().iterator().next();
+
+ log.info("Serverconn2 is " + serverConn2);
assertTrue(serverConn == serverConn2);
@@ -261,9 +263,16 @@
Thread.sleep(10);
}
+
+ if (!server.getRemotingService().getConnections().isEmpty())
+ {
+ RemotingConnection serverConn2 = server.getRemotingService().getConnections().iterator().next();
+
+ log.info("Serverconn2 is " + serverConn2);
+ }
assertTrue(server.getRemotingService().getConnections().isEmpty());
-
+
// The client listener should be called too since the server will close it from the server side which will result
// in the
// netty detecting closure on the client side and then calling failure listener
More information about the jboss-cvs-commits
mailing list