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 2012/11/11 14:35:51 UTC
svn commit: r1407980 - in /camel/branches/camel-2.10.x: ./
components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateDiscardOnTimeoutTest.java
Author: davsclaus
Date: Sun Nov 11 13:35:51 2012
New Revision: 1407980
URL: http://svn.apache.org/viewvc?rev=1407980&view=rev
Log:
Fixed test
Modified:
camel/branches/camel-2.10.x/ (props changed)
camel/branches/camel-2.10.x/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateDiscardOnTimeoutTest.java
Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
Merged /camel/trunk:r1407978
Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified: camel/branches/camel-2.10.x/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateDiscardOnTimeoutTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateDiscardOnTimeoutTest.java?rev=1407980&r1=1407979&r2=1407980&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateDiscardOnTimeoutTest.java (original)
+++ camel/branches/camel-2.10.x/components/camel-hawtdb/src/test/java/org/apache/camel/component/hawtdb/HawtDBAggregateDiscardOnTimeoutTest.java Sun Nov 11 13:35:51 2012
@@ -33,10 +33,6 @@ public class HawtDBAggregateDiscardOnTim
public void setUp() throws Exception {
deleteDirectory("target/data");
repo = new HawtDBAggregationRepository("repo1", "target/data/hawtdb.dat");
- // enable recovery
- repo.setUseRecovery(true);
- // check faster
- repo.setRecoveryInterval(500, TimeUnit.MILLISECONDS);
super.setUp();
}
@@ -48,8 +44,8 @@ public class HawtDBAggregateDiscardOnTim
template.sendBodyAndHeader("direct:start", "A", "id", 123);
template.sendBodyAndHeader("direct:start", "B", "id", 123);
- // wait 3 seconds
- Thread.sleep(3000);
+ // wait 4 seconds
+ Thread.sleep(4000);
mock.assertIsSatisfied();
@@ -73,7 +69,7 @@ public class HawtDBAggregateDiscardOnTim
from("direct:start")
.aggregate(header("id"), new MyAggregationStrategy())
.completionSize(3).aggregationRepository(repo)
- // use a 3 second timeout
+ // use a 2 second timeout
.completionTimeout(2000)
// and if timeout occurred then just discard the aggregated message
.discardOnCompletionTimeout()