Test inrange rather than ignoring the value
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 8 Sep 2011 14:32:51 +0000 (14:32 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 8 Sep 2011 14:32:51 +0000 (14:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1166713 13f79535-47bb-0310-9956-ffa450edef68

modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/BorrowWaitTest.java

index 7e82b24..3775ef8 100644 (file)
@@ -39,7 +39,9 @@ public class BorrowWaitTest extends DefaultTestCase {
         }catch (SQLException x) {
             long delta = System.currentTimeMillis();
             boolean inrange = Math.abs(wait-delta) < 1000;
-            assertTrue("Connection should have been acquired within +/- 1 second.",true);
+            assertTrue(
+                    "Connection should have been acquired within +/- 1 second.",
+                    inrange);
         }
         con.close();
     }