activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r561113 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueSubscriptionTest.java
Date Mon, 30 Jul 2007 20:50:02 GMT
Author: chirino
Date: Mon Jul 30 13:50:01 2007
New Revision: 561113

URL: http://svn.apache.org/viewvc?view=rev&rev=561113
Log:
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.


Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueSubscriptionTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueSubscriptionTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueSubscriptionTest.java?view=diff&rev=561113&r1=561112&r2=561113
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueSubscriptionTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueSubscriptionTest.java
Mon Jul 30 13:50:01 2007
@@ -108,7 +108,7 @@
         producerCount = 1;
         messageCount  = 1000;
         messageSize   = 1; // 1 byte
-        prefetchCount = 10;
+        prefetchCount = messageCount/consumerCount;
 
         doMultipleClientsTest();
 



Mime
View raw message