From ab9bce6147f3c7a82f073d179662fda1e6c23047 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Tue, 11 Oct 2011 11:09:39 +0000 Subject: [PATCH] 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 --- .../java/org/apache/activemq/broker/XARecoveryBrokerTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java index e44261a18f..fac399a498 100755 --- a/activemq-core/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java @@ -16,6 +16,7 @@ */ package org.apache.activemq.broker; +import java.util.concurrent.TimeUnit; import javax.jms.JMSException; import javax.management.InstanceNotFoundException; import javax.management.MalformedObjectNameException; @@ -205,7 +206,7 @@ public class XARecoveryBrokerTest extends BrokerRestartTestSupport { // We should get the committed transactions. for (int i = 0; i < expectedMessageCount(4, destination); i++) { - Message m = receiveMessage(connection); + Message m = receiveMessage(connection, TimeUnit.SECONDS.toMillis(10)); assertNotNull(m); }