[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/ssl/timeout ...

Ron Sigal ron_sigal at yahoo.com
Mon Nov 12 01:59:17 EST 2007


  User: rsigal  
  Date: 07/11/12 01:59:17

  Modified:    src/tests/org/jboss/test/remoting/transport/socket/ssl/timeout 
                        Tag: remoting_2_x
                        SSLSocketPerInvocationTimeoutTestCase.java
  Log:
  JBREM-807, JBREM-821:  Removed second invocation from testNewSocketTimeout() since ServerThreads become unusable when they shut down.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +2 -5      JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/ssl/timeout/SSLSocketPerInvocationTimeoutTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SSLSocketPerInvocationTimeoutTestCase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/ssl/timeout/SSLSocketPerInvocationTimeoutTestCase.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -b -r1.1.2.3 -r1.1.2.4
  --- SSLSocketPerInvocationTimeoutTestCase.java	23 Feb 2007 02:00:22 -0000	1.1.2.3
  +++ SSLSocketPerInvocationTimeoutTestCase.java	12 Nov 2007 06:59:17 -0000	1.1.2.4
  @@ -25,7 +25,7 @@
    * See javadoc for PerInvocationTimeoutTestRoot.
    *   
    * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
  - * @version $Revision: 1.1.2.3 $
  + * @version $Revision: 1.1.2.4 $
    * <p>
    * Copyright Feb 6, 2007
    * </p>
  @@ -124,6 +124,7 @@
         client.connect();
         Object response = client.invoke("test 1");
         assertEquals("test 1", response);
  +      log.info("first invocation succeeded");
         
         class BooleanHolder {public boolean value;}
         final BooleanHolder timedOut = new BooleanHolder();
  @@ -138,10 +139,6 @@
                  // Wait for the server to be disabled.
                  Thread.sleep(4000);
                  
  -               // This invocation will cause the ServerThread to shut down.
  -               client.invoke("test 2");
  -               log.debug("calling client.disconnect()");
  -               
                  // This invocation will require the creation of a new socket, which
                  // should promptly time out.
                  HashMap metadata = new HashMap();
  
  
  



More information about the jboss-cvs-commits mailing list