Author: kkolinko
Date: Sun Jan  9 07:11:30 2011
New Revision: 1056887

URL: http://svn.apache.org/viewvc?rev=1056887&view=rev
Log:
The TestMapper.performanceTest() takes 3250 msecs to rn for me. I am increasing 
the timeout to be 4s.
Also printing the actual value in case the test fails.

Modified:
    tomcat/trunk/test/org/apache/tomcat/util/http/mapper/TestMapper.java

Modified: tomcat/trunk/test/org/apache/tomcat/util/http/mapper/TestMapper.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/http/mapper/TestMapper.java?rev=1056887&r1=1056886&r2=1056887&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/util/http/mapper/TestMapper.java 
(original)
+++ tomcat/trunk/test/org/apache/tomcat/util/http/mapper/TestMapper.java Sun 
Jan  9 07:11:30 2011
@@ -147,9 +147,9 @@ public class TestMapper extends TestCase
         }
         long time = System.currentTimeMillis() - start;
         
-        // Takes ~1s on markt's laptop. If this takes more than 3s something
+        // Takes ~1s on markt's laptop. If this takes more than 4s something
         // probably needs looking at. If this fails repeatedly then we may need
         // to increase this limit.
-        assertTrue(time < 3000);
+        assertTrue(String.valueOf(time), time < 4000);
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to