The TestMapper.performanceTest() takes 3250 msecs to rn for me. I am increasing the...
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 9 Jan 2011 07:11:30 +0000 (07:11 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 9 Jan 2011 07:11:30 +0000 (07:11 +0000)
Also printing the actual value in case the test fails.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1056887 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/tomcat/util/http/mapper/TestMapper.java

index e2a4c35..1bf3c82 100644 (file)
@@ -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);
     }
 }