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

Ron Sigal ron_sigal at yahoo.com
Mon Nov 12 17:04:45 EST 2007


  User: rsigal  
  Date: 07/11/12 17:04:45

  Modified:    src/tests/org/jboss/test/remoting/transport/socket/oneway 
                        Tag: remoting_2_x
                        OnewayConnectionManagerTestCase.java
  Log:
  JBREM-800:  In testDefaultTimeoutWithTimeouts(), extended expected time within which oneway invocations return.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.8   +4 -4      JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/oneway/Attic/OnewayConnectionManagerTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: OnewayConnectionManagerTestCase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/socket/oneway/Attic/OnewayConnectionManagerTestCase.java,v
  retrieving revision 1.1.2.7
  retrieving revision 1.1.2.8
  diff -u -b -r1.1.2.7 -r1.1.2.8
  --- OnewayConnectionManagerTestCase.java	7 Nov 2007 03:39:22 -0000	1.1.2.7
  +++ OnewayConnectionManagerTestCase.java	12 Nov 2007 22:04:45 -0000	1.1.2.8
  @@ -56,7 +56,7 @@
    * JBREM-706.  It will also serve as unit test for JBREM-843.
    * 
    * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
  - * @version $Revision: 1.1.2.7 $
  + * @version $Revision: 1.1.2.8 $
    * <p>
    * Copyright Jun 23, 2007
    * </p>
  @@ -123,15 +123,15 @@
         
         int INVOCATIONS = 5;
         HashMap metadata = new HashMap();
  -      metadata.put(DELAY, "4000");
  +      metadata.put(DELAY, "5000");
         long start = System.currentTimeMillis();
         for (int i = 0; i < INVOCATIONS; i++)
         {
            client.invokeOneway(SLOW + i, metadata, true);
         }
   
  -      assertTrue((System.currentTimeMillis() - start < 1000));
  -      Thread.sleep(1000);
  +      assertTrue((System.currentTimeMillis() - start < 2000));
  +      Thread.sleep(2000);
         usedPool = ((Long) field.get(invoker)).longValue();
         assertEquals(INVOCATIONS, usedPool);
         assertEquals(0, pool.size());
  
  
  



More information about the jboss-cvs-commits mailing list