From f90c62c64042a6cbf83845ff84932a7d4fdc9e54 Mon Sep 17 00:00:00 2001 From: "Hiram R. Chirino" Date: Mon, 30 Jul 2007 20:50:01 +0000 Subject: [PATCH] Fix for intermitent test failure at: testOneProducerManyConsumersManyMessages(org.apache.activemq.broker.policy.RoundRobinDispatchPolicyTest) It was checking that messages were evenly distributed accross consumers but that can only be garanteed when the consumer prefetches can hold all the published messages. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@561113 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/broker/QueueSubscriptionTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/QueueSubscriptionTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/QueueSubscriptionTest.java index 9899e632a5..d556bcb7a8 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/QueueSubscriptionTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/broker/QueueSubscriptionTest.java @@ -108,7 +108,7 @@ public class QueueSubscriptionTest extends JmsMultipleClientsTestSupport { producerCount = 1; messageCount = 1000; messageSize = 1; // 1 byte - prefetchCount = 10; + prefetchCount = messageCount/consumerCount; doMultipleClientsTest();