diff --git a/components/camel-spring-xml/src/test/java/org/apache/camel/spring/interceptor/TransactedStackSizeBreakOnExceptionTest.java b/components/camel-spring-xml/src/test/java/org/apache/camel/spring/interceptor/TransactedStackSizeBreakOnExceptionTest.java index b54c81908d4fc..e08c10c72ddb5 100644 --- a/components/camel-spring-xml/src/test/java/org/apache/camel/spring/interceptor/TransactedStackSizeBreakOnExceptionTest.java +++ b/components/camel-spring-xml/src/test/java/org/apache/camel/spring/interceptor/TransactedStackSizeBreakOnExceptionTest.java @@ -31,7 +31,7 @@ public class TransactedStackSizeBreakOnExceptionTest extends TransactionClientDa @Test public void testStackSize() throws Exception { - getMockEndpoint("mock:line").expectedMessageCount(failAt); + getMockEndpoint("mock:line").expectedMinimumMessageCount(failAt); getMockEndpoint("mock:line").assertNoDuplicates(body()); getMockEndpoint("mock:result").expectedMessageCount(0);