This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-3.11.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit aa284374130dc883ac67de1687f3f7cc4fb4f9e2 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sat Nov 13 13:21:09 2021 +0100 CAMEL-17174: fixed issue where exchange UnitOfWork was not being cleared upon completion. --- .../src/test/java/org/apache/camel/processor/UnitOfWorkHelperTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/camel-core/src/test/java/org/apache/camel/processor/UnitOfWorkHelperTest.java b/core/camel-core/src/test/java/org/apache/camel/processor/UnitOfWorkHelperTest.java index 855d7b9..b514375 100644 --- a/core/camel-core/src/test/java/org/apache/camel/processor/UnitOfWorkHelperTest.java +++ b/core/camel-core/src/test/java/org/apache/camel/processor/UnitOfWorkHelperTest.java @@ -48,6 +48,8 @@ public class UnitOfWorkHelperTest extends ContextTestSupport { fromEndpoint = context.getEndpoint("seda:from", SedaEndpoint.class); eventNotifier = new CustomEventNotifier(); + // ensure custom event notifier is started to receive events + eventNotifier.start(); context.getManagementStrategy().addEventNotifier(eventNotifier); Exchange testExchange = createExchange("testFile");