mirror of https://github.com/apache/activemq.git
give consumer a little more time for slower hardware
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1181711 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c8f42e72fb
commit
ab9bce6147
|
@ -16,6 +16,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq.broker;
|
package org.apache.activemq.broker;
|
||||||
|
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
import javax.jms.JMSException;
|
import javax.jms.JMSException;
|
||||||
import javax.management.InstanceNotFoundException;
|
import javax.management.InstanceNotFoundException;
|
||||||
import javax.management.MalformedObjectNameException;
|
import javax.management.MalformedObjectNameException;
|
||||||
|
@ -205,7 +206,7 @@ public class XARecoveryBrokerTest extends BrokerRestartTestSupport {
|
||||||
|
|
||||||
// We should get the committed transactions.
|
// We should get the committed transactions.
|
||||||
for (int i = 0; i < expectedMessageCount(4, destination); i++) {
|
for (int i = 0; i < expectedMessageCount(4, destination); i++) {
|
||||||
Message m = receiveMessage(connection);
|
Message m = receiveMessage(connection, TimeUnit.SECONDS.toMillis(10));
|
||||||
assertNotNull(m);
|
assertNotNull(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue