give tests a little bit more time, to check if it will help with occasional failures on slow machines

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1380264 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2012-09-03 15:10:23 +00:00
parent 99088c7ba6
commit f344696a4a
3 changed files with 5 additions and 2 deletions

View File

@ -169,7 +169,7 @@ public class JmsSendReceiveTestSupport extends TestSupport implements MessageLis
* Waits for messages to be delivered.
*/
protected void waitForMessagesToBeDelivered() {
long maxWaitTime = 30000;
long maxWaitTime = 60000;
long waitTime = maxWaitTime;
long start = (maxWaitTime <= 0) ? 0 : System.currentTimeMillis();

View File

@ -76,6 +76,7 @@ public abstract class DurableSubscriptionTestSupport extends TestSupport {
broker.setPersistenceAdapter(createPersistenceAdapter());
broker.setPersistent(true);
broker.start();
broker.waitUntilStarted();
connection = createConnection();
}
@ -87,6 +88,7 @@ public abstract class DurableSubscriptionTestSupport extends TestSupport {
broker.setPersistenceAdapter(createPersistenceAdapter());
broker.setPersistent(true);
broker.start();
broker.waitUntilStarted();
connection = createConnection();
}
@ -97,6 +99,7 @@ public abstract class DurableSubscriptionTestSupport extends TestSupport {
}
if (broker != null) {
broker.stop();
broker.waitUntilStopped();
}
}

View File

@ -70,7 +70,7 @@
<hsqldb-version>1.7.2.2</hsqldb-version>
<jasypt-version>1.8</jasypt-version>
<jdom-version>1.0</jdom-version>
<jetty-version>7.6.1.v20120215</jetty-version>
<jetty-version>7.6.5.v20120716</jetty-version>
<jsp-version>2.1.v20100127</jsp-version>
<jstl-version>1.1.2</jstl-version>
<jettison-version>1.3.2</jettison-version>