db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r1571764 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SetQueryTimeoutTest.java
Date Tue, 25 Feb 2014 17:41:40 GMT
Author: myrnavl
Date: Tue Feb 25 17:41:40 2014
New Revision: 1571764

URL: http://svn.apache.org/r1571764
Log:
DERBY-6280; test failure in SetQueryTimeoutTest ComparisonFailure: Output at line 16 expected:<Test[ing
that PreparedStatement remembers timeout.]> but was:<Test[ SetQueryTimeoutTest FAILED]>
  adjusting location getting start time for enhanced error message on failure

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SetQueryTimeoutTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SetQueryTimeoutTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SetQueryTimeoutTest.java?rev=1571764&r1=1571763&r2=1571764&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SetQueryTimeoutTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SetQueryTimeoutTest.java
Tue Feb 25 17:41:40 2014
@@ -684,8 +684,8 @@ public class SetQueryTimeoutTest
         long runTime=0;
         for (int i = 0; i < 3; i++) {
             try {
-                ResultSet rs = stmt.executeQuery(getFetchQuery("t"));
                 long startTime = System.currentTimeMillis();
+                ResultSet rs = stmt.executeQuery(getFetchQuery("t"));
                 while (rs.next());
                 long endTime = System.currentTimeMillis();
                 runTime = endTime - startTime;



Mime
View raw message