Author: chirino
Date: Wed Sep 29 17:34:36 2010
New Revision: 1002769
URL: http://svn.apache.org/viewvc?rev=1002769&view=rev
Log:
fix the tests I broke.
Modified:
activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/perf/StompBrokerPerfTest.scala
Modified:
activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/perf/StompBrokerPerfTest.scala
URL:
http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/perf/StompBrokerPerfTest.scala?rev=1002769&r1=1002768&r2=1002769&view=diff
==============================================================================
---
activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/perf/StompBrokerPerfTest.scala
(original)
+++
activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/perf/StompBrokerPerfTest.scala
Wed Sep 29 17:34:36 2010
@@ -151,7 +151,7 @@ class StompRemoteConsumer extends Remote
if ( messageCount % 10000 == 0 ) {
trace("Received message count : " + messageCount)
}
- if (maxMessages > 0 && messageCount >= maxMessages) {
+ if (maxMessages > 0 && messageCount >= maxMessages - 1) {
stop()
}