db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r1379163 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java
Date Thu, 30 Aug 2012 21:33:42 GMT
Author: myrnavl
Date: Thu Aug 30 21:33:42 2012
New Revision: 1379163

URL: http://svn.apache.org/viewvc?rev=1379163&view=rev
Log:
DERBY-5912; testIsValidImplemented fails for NetworkServer in some slow running machines/configurations
  changing the timeout setting from 1 to 200 so the test will pass even in slow configurations

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java?rev=1379163&r1=1379162&r2=1379163&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java
Thu Aug 30 21:33:42 2012
@@ -164,8 +164,10 @@ public class ConnectionTest
         // Test with an infinite (0) timeout
         assertTrue(getConnection().isValid(0));
 
-        // Test with a 1 second timeout
-        assertTrue(getConnection().isValid(1));
+        // Test with a large timeout. We expect
+        // to complete and succeed much sooner.
+        // see DERBY-5912
+        assertTrue(getConnection().isValid(200));
 
         // Test with an illegal timeout
         try {



Mime
View raw message