This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new bdfe78d392b Fix flaky test bdfe78d392b is described below commit bdfe78d392bafcba33144c7aa2ee4e3b039ca143 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Aug 11 19:21:40 2023 +0200 Fix flaky test --- .../apache/camel/component/file/FileConsumerFileNameFilterTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFileNameFilterTest.java b/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFileNameFilterTest.java index 710761c408a..b77f5252bfa 100644 --- a/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFileNameFilterTest.java +++ b/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFileNameFilterTest.java @@ -16,8 +16,6 @@ */ package org.apache.camel.component.file; -import java.time.Duration; - import org.apache.camel.ContextTestSupport; import org.apache.camel.Exchange; import org.apache.camel.builder.RouteBuilder; @@ -41,7 +39,7 @@ public class FileConsumerFileNameFilterTest extends ContextTestSupport { final MockEndpoint mockEndpoint = getMockEndpoint("mock:txt"); mockEndpoint.expectedBodiesReceivedInAnyOrder("Hello World", "Bye World"); - mockEndpoint.assertIsSatisfied(Duration.ofSeconds(2).toMillis()); + mockEndpoint.assertIsSatisfied(); } @Override