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:
Michael Dick 2010-08-13 02:03:48 +00:00
parent 268658f782
commit e449027abe
1 changed files with 2 additions and 1 deletions

View File

@ -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) {