This is an automated email from the ASF dual-hosted git repository. orpiske 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 72d0c6e5bca (chores) camel-core: test fixes 72d0c6e5bca is described below commit 72d0c6e5bcad235db00ab8bba07e265b04ae7509 Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Thu Jul 13 15:26:35 2023 +0200 (chores) camel-core: test fixes - add a small timeout on a few tests for less flakiness on slower hosts --- .../camel/component/file/FileConsumerFailureHandledTest.java | 8 ++++---- .../component/file/FileConsumerMoveFailureOnCompletionTest.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFailureHandledTest.java b/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFailureHandledTest.java index 1545decbb23..d8d4cbd3778 100644 --- a/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFailureHandledTest.java +++ b/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFailureHandledTest.java @@ -43,7 +43,7 @@ public class FileConsumerFailureHandledTest extends ContextTestSupport { mock.expectedBodiesReceived("Hello Paris"); template.sendBodyAndHeader(fileUri(), "Paris", Exchange.FILE_NAME, "paris.txt"); - mock.assertIsSatisfied(); + mock.assertIsSatisfied(1000); oneExchangeDone.matchesWaitTime(); @@ -57,7 +57,7 @@ public class FileConsumerFailureHandledTest extends ContextTestSupport { mock.expectedBodiesReceived("London"); template.sendBodyAndHeader(fileUri(), "London", Exchange.FILE_NAME, "london.txt"); - mock.assertIsSatisfied(); + mock.assertIsSatisfied(1000); oneExchangeDone.matchesWaitTime(); @@ -72,7 +72,7 @@ public class FileConsumerFailureHandledTest extends ContextTestSupport { mock.expectedBodiesReceived("Dublin"); template.sendBodyAndHeader(fileUri(), "Dublin", Exchange.FILE_NAME, "dublin.txt"); - mock.assertIsSatisfied(); + mock.assertIsSatisfied(1000); oneExchangeDone.matchesWaitTime(); @@ -87,7 +87,7 @@ public class FileConsumerFailureHandledTest extends ContextTestSupport { mock.expectedBodiesReceived("Madrid"); template.sendBodyAndHeader(fileUri(), "Madrid", Exchange.FILE_NAME, "madrid.txt"); - mock.assertIsSatisfied(); + mock.assertIsSatisfied(1000); oneExchangeDone.matchesWaitTime(); diff --git a/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerMoveFailureOnCompletionTest.java b/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerMoveFailureOnCompletionTest.java index 472bb193621..90c45cb711a 100644 --- a/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerMoveFailureOnCompletionTest.java +++ b/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerMoveFailureOnCompletionTest.java @@ -35,7 +35,7 @@ public class FileConsumerMoveFailureOnCompletionTest extends ContextTestSupport template.sendBodyAndHeader(fileUri(), "Kaboom", Exchange.FILE_NAME, "bye.txt"); - assertMockEndpointsSatisfied(); + mock.assertIsSatisfied(1000); } @Test @@ -50,7 +50,7 @@ public class FileConsumerMoveFailureOnCompletionTest extends ContextTestSupport template.sendBodyAndHeader(fileUri(), "Hello World", Exchange.FILE_NAME, "hello.txt"); template.sendBodyAndHeader(fileUri(), "Kaboom", Exchange.FILE_NAME, "bye.txt"); - assertMockEndpointsSatisfied(); + mock.assertIsSatisfied(1000); } @Override