avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject cvs commit: avalon-excalibur/thread/src/test/org/apache/avalon/excalibur/thread/impl/test ResourceLimitingThreadPoolTestCase.java
Date Sat, 05 Apr 2003 19:12:30 GMT
leosimons    2003/04/05 11:12:30

  Modified:    thread/src/test/org/apache/avalon/excalibur/thread/impl/test
                        ResourceLimitingThreadPoolTestCase.java
  Log:
  increase acceptable timeframe limits to avoid test failures
  
  Revision  Changes    Path
  1.9       +19 -19    avalon-excalibur/thread/src/test/org/apache/avalon/excalibur/thread/impl/test/ResourceLimitingThreadPoolTestCase.java
  
  Index: ResourceLimitingThreadPoolTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/thread/src/test/org/apache/avalon/excalibur/thread/impl/test/ResourceLimitingThreadPoolTestCase.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ResourceLimitingThreadPoolTestCase.java	29 Mar 2003 18:53:26 -0000	1.8
  +++ ResourceLimitingThreadPoolTestCase.java	5 Apr 2003 19:12:29 -0000	1.9
  @@ -3,34 +3,34 @@
    ============================================================================
                      The Apache Software License, Version 1.1
    ============================================================================
  - 
  +
    Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  - 
  +
    Redistribution and use in source and binary forms, with or without modifica-
    tion, are permitted provided that the following conditions are met:
  - 
  +
    1. Redistributions of  source code must  retain the above copyright  notice,
       this list of conditions and the following disclaimer.
  - 
  +
    2. Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
  - 
  +
    3. The end-user documentation included with the redistribution, if any, must
       include  the following  acknowledgment:  "This product includes  software
       developed  by the  Apache Software Foundation  (http://www.apache.org/)."
       Alternately, this  acknowledgment may  appear in the software itself,  if
       and wherever such third-party acknowledgments normally appear.
  - 
  - 4. The names "Jakarta", "Avalon", "Excalibur" and "Apache Software Foundation"  
  -    must not be used to endorse or promote products derived from this  software 
  -    without  prior written permission. For written permission, please contact 
  +
  + 4. The names "Jakarta", "Avalon", "Excalibur" and "Apache Software Foundation"
  +    must not be used to endorse or promote products derived from this  software
  +    without  prior written permission. For written permission, please contact
       apache@apache.org.
  - 
  +
    5. Products  derived from this software may not  be called "Apache", nor may
       "Apache" appear  in their name,  without prior written permission  of the
       Apache Software Foundation.
  - 
  +
    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
  @@ -41,11 +41,11 @@
    ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
    (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
    THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - 
  +
    This software  consists of voluntary contributions made  by many individuals
  - on  behalf of the Apache Software  Foundation. For more  information on the 
  + on  behalf of the Apache Software  Foundation. For more  information on the
    Apache Software Foundation, please see <http://www.apache.org/>.
  - 
  +
   */
   package org.apache.avalon.excalibur.thread.impl.test;
   
  @@ -183,10 +183,10 @@
   
           // Make sure this took about the right amount of time to get here.
           //System.out.println( "First time: " + dur );
  -        if( Math.abs( dur - firstTime ) > 50 )
  +        if( Math.abs( dur - firstTime ) > 100 )
           {
               fail( "Time to start all tasks, " + dur +
  -                  ", was not within 50ms of the expected time, " + firstTime );
  +                  ", was not within 100ms of the expected time, " + firstTime );
           }
   
           // Wait for all worker threads to complete.
  @@ -205,10 +205,10 @@
   
           // Make sure this took about the right amount of time to get here.
           //System.out.println( "Total time: " + dur );
  -        if( Math.abs( dur - totalTime ) > 50 )
  +        if( Math.abs( dur - totalTime ) > 100 )
           {
               fail( "Time to complete all tasks, " + dur +
  -                  ", was not within 50ms of the expected time, " + totalTime );
  +                  ", was not within 100ms of the expected time, " + totalTime );
           }
   
           //System.out.println( logger.toString() );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message