Author: ron.sigal(a)jboss.com
Date: 2008-06-10 21:17:12 -0400 (Tue, 10 Jun 2008)
New Revision: 4286
Modified:
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/bisocket/CloseControlSocketTestCase.java
Log:
JBREM-995: Added 2000 ms wait in testControlSocketClosedWhenReplaced().
Modified:
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/bisocket/CloseControlSocketTestCase.java
===================================================================
---
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/bisocket/CloseControlSocketTestCase.java 2008-06-11
01:16:26 UTC (rev 4285)
+++
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/bisocket/CloseControlSocketTestCase.java 2008-06-11
01:17:12 UTC (rev 4286)
@@ -271,6 +271,7 @@
callbackInvoker.createControlConnection(listenerId, false);
// Verify old control socket is closed and has been replaced.
+ Thread.sleep(2000);
assertTrue(oldControlSocket.isClosed());
field = BisocketClientInvoker.class.getDeclaredField("controlSocket");
field.setAccessible(true);