mirror of https://github.com/apache/activemq.git
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:
parent
99088c7ba6
commit
f344696a4a
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue