mirror of https://github.com/apache/openjpa.git
Increase timeout value for slice testcase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@985067 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
268658f782
commit
e449027abe
|
@ -49,6 +49,7 @@ public class TestQueryMultiThreaded extends SliceTestCase {
|
|||
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 extends SliceTestCase {
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue