You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2009/12/20 14:49:27 UTC

svn commit: r892594 - /camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateGroupedExchangeBatchSizeTest.java

Author: davsclaus
Date: Sun Dec 20 13:49:26 2009
New Revision: 892594

URL: http://svn.apache.org/viewvc?rev=892594&view=rev
Log:
Fixed unit test timing issue

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateGroupedExchangeBatchSizeTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateGroupedExchangeBatchSizeTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateGroupedExchangeBatchSizeTest.java?rev=892594&r1=892593&r2=892594&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateGroupedExchangeBatchSizeTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateGroupedExchangeBatchSizeTest.java Sun Dec 20 13:49:26 2009
@@ -31,8 +31,8 @@
     public void testGrouped() throws Exception {
         MockEndpoint result = getMockEndpoint("mock:result");
 
-        // we expect 1 messages since we group all we get in using the same correlation key
-        result.expectedMessageCount(1);
+        // we expect 1 or 2 messages since we group all we get in using the same correlation key
+        result.expectedMinimumMessageCount(1);
 
         // then we sent all the message at once
         template.sendBody("direct:start", "100");