You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by my...@apache.org on 2012/08/31 01:21:05 UTC
svn commit: r1379219 - in /db/derby/code/branches/10.9: ./
java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java
Author: myrnavl
Date: Thu Aug 30 23:21:04 2012
New Revision: 1379219
URL: http://svn.apache.org/viewvc?rev=1379219&view=rev
Log:
DERBY-5912; testIsValidImplemented fails for NetworkServer in some slow running machines/configurations
Backport revision 1379163 from trunk, changing the timeout value
Modified:
db/derby/code/branches/10.9/ (props changed)
db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java
Propchange: db/derby/code/branches/10.9/
------------------------------------------------------------------------------
Merged /db/derby/code/trunk:r1379163
Modified: db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java?rev=1379219&r1=1379218&r2=1379219&view=diff
==============================================================================
--- db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java (original)
+++ db/derby/code/branches/10.9/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionTest.java Thu Aug 30 23:21:04 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 {