not sure why.. but these guys are passing for me now.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360197 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2005-12-30 23:33:46 +00:00
parent 3d95025a47
commit 7703aeef0c
2 changed files with 13 additions and 16 deletions

View File

@ -136,9 +136,6 @@ public class QueueSubscriptionTest extends JmsMultipleClientsTestSupport {
startConsumers(consumerFactory, dest);
// Wait for consumers to setup
// Thread.sleep(1000);
startProducers(dest, messageCount);
// Wait for messages to be received. Make it proportional to the messages delivered.

View File

@ -24,10 +24,22 @@ public class TopicSubscriptionTest extends QueueSubscriptionTest {
topic = true;
}
public void testManyProducersManyConsumers() throws Exception {
consumerCount = 20;
producerCount = 20;
messageCount = 500;
messageSize = 1;
prefetchCount = 10;
doMultipleClientsTest();
assertTotalMessagesReceived(messageCount * producerCount * consumerCount);
}
public void testOneProducerTwoConsumersLargeMessagesOnePrefetch() throws Exception {
consumerCount = 2;
producerCount = 1;
messageCount = 100;
messageCount = 10;
messageSize = 1024 * 1024 * 1; // 1 MB
prefetchCount = 1;
@ -108,16 +120,4 @@ public class TopicSubscriptionTest extends QueueSubscriptionTest {
assertTotalMessagesReceived(messageCount * producerCount * consumerCount);
}
public void testManyProducersManyConsumers() throws Exception {
consumerCount = 20;
producerCount = 20;
messageCount = 20;
messageSize = 1; // 1 byte
prefetchCount = 10;
doMultipleClientsTest();
assertTotalMessagesReceived(messageCount * producerCount * consumerCount);
}
}