wait a little longer on slow machines where recovery can take a while

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@833497 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-11-06 17:54:15 +00:00
parent bf91745bf5
commit 748e419b75
1 changed files with 2 additions and 6 deletions

View File

@ -48,8 +48,6 @@ import org.apache.activemq.ActiveMQConnection;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.command.ActiveMQTopic;
import org.apache.activemq.store.PersistenceAdapter;
import org.apache.activemq.store.amq.AMQPersistenceAdapter;
import org.apache.activemq.store.amq.AMQPersistenceAdapterFactory;
import org.apache.activemq.util.Wait;
import org.apache.commons.logging.Log;
@ -78,8 +76,7 @@ public class DurableConsumerTest extends TestCase {
private class SimpleTopicSubscriber implements MessageListener, ExceptionListener {
private TopicConnection topicConnection = null;
private String clientId;
public SimpleTopicSubscriber(String connectionURL, String clientId, String topicName) {
ActiveMQConnectionFactory topicConnectionFactory = null;
@ -98,7 +95,6 @@ public class DurableConsumerTest extends TestCase {
topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
topicSubscriber = topicSession.createDurableSubscriber(topic, (clientId));
this.clientId = clientId;
topicSubscriber.setMessageListener(this);
} catch (JMSException e) {
@ -281,7 +277,7 @@ public class DurableConsumerTest extends TestCase {
public boolean isSatisified() throws Exception {
return receivedCount.get() > numMessages;
}
});
}, 60*1000);
assertTrue("got some messages: " + receivedCount.get(), receivedCount.get() > numMessages);
assertTrue("no exceptions, but: " + exceptions, exceptions.isEmpty());
}