tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kfuj...@apache.org
Subject svn commit: r1770797 - in /tomcat/tc8.0.x/trunk: modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/TestSlowQueryReport.java webapps/docs/changelog.xml
Date Tue, 22 Nov 2016 05:40:48 GMT
Author: kfujino
Date: Tue Nov 22 05:40:48 2016
New Revision: 1770797

URL: http://svn.apache.org/viewvc?rev=1770797&view=rev
Log:
Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=60398
Fix testcase of TestSlowQueryReport.

Modified:
    tomcat/tc8.0.x/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/TestSlowQueryReport.java
    tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml

Modified: tomcat/tc8.0.x/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/TestSlowQueryReport.java
URL: http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/TestSlowQueryReport.java?rev=1770797&r1=1770796&r2=1770797&view=diff
==============================================================================
--- tomcat/tc8.0.x/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/TestSlowQueryReport.java
(original)
+++ tomcat/tc8.0.x/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/TestSlowQueryReport.java
Tue Nov 22 05:40:48 2016
@@ -163,7 +163,7 @@ public class TestSlowQueryReport extends
         }
         Map<String,SlowQueryReport.QueryStats> map = SlowQueryReport.getPoolStats(datasource.getPool().getName());
         Assert.assertNotNull(map);
-        Assert.assertEquals(0,map.size());
+        Assert.assertEquals(1,map.size());
         ConnectionPool pool = datasource.getPool();
         con.close();
         tearDown();

Modified: tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml?rev=1770797&r1=1770796&r2=1770797&view=diff
==============================================================================
--- tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml Tue Nov 22 05:40:48 2016
@@ -106,6 +106,10 @@
         connection validation is done by calling the <code>isValid()</code>
         method. (kfujino)
       </fix>
+      <fix>
+        <bug>60398</bug>: Fix testcase of <code>TestSlowQueryReport</code>.
+        (kfujino)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Other">



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message