This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new ed26e22 Fixed tests
ed26e22 is described below
commit ed26e22252a40765551fd265a25904d946dc27c5
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Mar 14 07:24:55 2020 +0100
Fixed tests
---
.../apache/camel/component/disruptor/vm/AbstractVmTestSupport.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/vm/AbstractVmTestSupport.java
b/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/vm/AbstractVmTestSupport.java
index 0e00163..7d4ff8a 100644
---
a/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/vm/AbstractVmTestSupport.java
+++
b/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/vm/AbstractVmTestSupport.java
@@ -37,7 +37,8 @@ public abstract class AbstractVmTestSupport extends
CamelTestSupport {
context2 = new DefaultCamelContext();
template2 = context2.createProducerTemplate();
- ServiceHelper.startService(template2, context2);
+ ServiceHelper.startService(template2);
+ context2.start();
// add routes after CamelContext has been started
RouteBuilder routeBuilder = createRouteBuilderForSecondContext();
@@ -49,7 +50,8 @@ public abstract class AbstractVmTestSupport extends
CamelTestSupport {
@Override
@After
public void tearDown() throws Exception {
- ServiceHelper.stopService(context2, template2);
+ ServiceHelper.stopService(template2);
+ context2.stop();
super.tearDown();
}