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 f0d1938d239 camel-bindy - Make test run faster
f0d1938d239 is described below
commit f0d1938d23909e744098dfc80157a6bad4e754c7
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Nov 11 12:28:47 2024 +0100
camel-bindy - Make test run faster
---
.../dataformat/bindy/fixed/link/BindyRaceConditionLinkTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/fixed/link/BindyRaceConditionLinkTest.java
b/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/fixed/link/BindyRaceConditionLinkTest.java
index fc61a1ebc49..d4736994839 100644
---
a/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/fixed/link/BindyRaceConditionLinkTest.java
+++
b/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/fixed/link/BindyRaceConditionLinkTest.java
@@ -26,7 +26,7 @@ import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat;
import org.apache.camel.dataformat.bindy.model.fixed.link.MyModel;
import org.apache.camel.test.junit5.CamelTestSupport;
-import org.junit.jupiter.api.RepeatedTest;
+import org.junit.jupiter.api.Test;
import static java.util.concurrent.TimeUnit.SECONDS;
@@ -38,7 +38,7 @@ public class BindyRaceConditionLinkTest extends
CamelTestSupport {
private static final int EXPECTED_SUCCESSFUL_MESSAGE_COUNT = 1500;
private static final int EXPECTED_FAILED_MESSAGE_COUNT = 0;
- private static final long WAIT_TIMEOUT = 5;
+ private static final long WAIT_TIMEOUT = 3;
@EndpointInject("mock:fail")
private MockEndpoint fail;
@@ -49,7 +49,7 @@ public class BindyRaceConditionLinkTest extends
CamelTestSupport {
@EndpointInject("direct:bindy-link-test")
private Endpoint begin;
- @RepeatedTest(3)
+ @Test
public void raceConditionTest() throws Exception {
Path filePath =
Path.of(ClassLoader.getSystemResource(SOURCE_CSV_FILE_PATH).toURI());
String csv = Files.readString(filePath);