You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by le...@apache.org on 2003/05/17 20:37:30 UTC
cvs commit: avalon-excalibur/thread/src/test/org/apache/avalon/excalibur/thread/impl/test ResourceLimitingThreadPoolTestCase.java
leif 2003/05/17 11:37:30
Modified: thread/src/test/org/apache/avalon/excalibur/thread/impl/test
ResourceLimitingThreadPoolTestCase.java
Log:
Make the time based tests less sensitive to external loads at the time the test is
run by increasing the window on time comparisons from 100ms to 500ms.
Revision Changes Path
1.10 +5 -5 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.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ResourceLimitingThreadPoolTestCase.java 5 Apr 2003 19:12:29 -0000 1.9
+++ ResourceLimitingThreadPoolTestCase.java 17 May 2003 18:37:30 -0000 1.10
@@ -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 ) > 100 )
+ if( Math.abs( dur - firstTime ) > 500 )
{
fail( "Time to start all tasks, " + dur +
- ", was not within 100ms of the expected time, " + firstTime );
+ ", was not within 500ms 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 ) > 100 )
+ if( Math.abs( dur - totalTime ) > 500 )
{
fail( "Time to complete all tasks, " + dur +
- ", was not within 100ms of the expected time, " + totalTime );
+ ", was not within 500ms 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