openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r985067 - /openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java
Date Fri, 13 Aug 2010 02:03:48 GMT
Author: mikedd
Date: Fri Aug 13 02:03:48 2010
New Revision: 985067

URL: http://svn.apache.org/viewvc?rev=985067&view=rev
Log:
Increase timeout value for slice testcase

Modified:
    openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java

Modified: openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java?rev=985067&r1=985066&r2=985067&view=diff
==============================================================================
--- openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java
(original)
+++ openjpa/trunk/openjpa-slice/src/test/java/org/apache/openjpa/slice/TestQueryMultiThreaded.java
Fri Aug 13 02:03:48 2010
@@ -49,6 +49,7 @@ public class TestQueryMultiThreaded exte
     private int VALUE_MIN = 100;
     private int VALUE_MAX = VALUE_MIN + POBJECT_COUNT - 1;
     private static int THREADS = 5;
+    private static int MAX_TIMEOUT = 300;
     private ExecutorService group; 
     private Future[] futures;
 
@@ -337,7 +338,7 @@ public class TestQueryMultiThreaded exte
         try {
             for (Future f : futures)
                 try {
-                    f.get(60, TimeUnit.SECONDS);
+                    f.get(MAX_TIMEOUT, TimeUnit.SECONDS);
                 } catch (TimeoutException te) {
                     fail("Failed " + te + "\r\n" + getStackDump(te));
                 } catch (ExecutionException e) {



Mime
View raw message