db-derby-commits mailing list archives

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

URL: http://svn.apache.org/r1571769
Log:
DERBY-6280; test failure in SetQueryTimeoutTest ComparisonFailure: Output at line 16 expected:<Test[ing
that PreparedStatement remembers timeout.]> but was:<Test[ SetQueryTimeoutTest FAILED]>
  one more fix to the enhanced messages

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=1571769&r1=1571768&r2=1571769&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:50:51 2014
@@ -712,8 +712,8 @@ public class SetQueryTimeoutTest
         for (int i = 0; i < 3; i++) {
             long runTime=0;
             try {
-                ResultSet rs = ps.executeQuery();
                 long startTime = System.currentTimeMillis();
+                ResultSet rs = ps.executeQuery();
                 while (rs.next()); 
                 long endTime = System.currentTimeMillis();
                 runTime = endTime - startTime;



Mime
View raw message