You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2022/06/07 10:58:03 UTC

[camel-quarkus] branch main updated: Use timer repeatCount of 1 in foundation timer tests

This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new 9e8ef91462 Use timer repeatCount of 1 in foundation timer tests
9e8ef91462 is described below

commit 9e8ef91462487c15a52209393466b1fb3a2b76e1
Author: James Netherton <ja...@gmail.com>
AuthorDate: Tue Jun 7 09:11:31 2022 +0100

    Use timer repeatCount of 1 in foundation timer tests
---
 .../org/apache/camel/quarkus/component/timer/it/TimerProducers.java     | 2 +-
 .../java/org/apache/camel/quarkus/component/timer/it/TimerRoutes.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/integration-test-groups/foundation/timer/src/main/java/org/apache/camel/quarkus/component/timer/it/TimerProducers.java b/integration-test-groups/foundation/timer/src/main/java/org/apache/camel/quarkus/component/timer/it/TimerProducers.java
index e0e25d88e5..5bb331c621 100644
--- a/integration-test-groups/foundation/timer/src/main/java/org/apache/camel/quarkus/component/timer/it/TimerProducers.java
+++ b/integration-test-groups/foundation/timer/src/main/java/org/apache/camel/quarkus/component/timer/it/TimerProducers.java
@@ -43,7 +43,7 @@ public class TimerProducers {
 
     @javax.enterprise.inject.Produces
     public LambdaRouteBuilder lambdaRoute() {
-        return rb -> rb.from("timer:bar").routeId("bar")
+        return rb -> rb.from("timer:bar?repeatCount=1").routeId("bar")
                 .process(e -> LOG.info(LOG_MESSAGE + getEffectivePort()));
     }
 
diff --git a/integration-test-groups/foundation/timer/src/main/java/org/apache/camel/quarkus/component/timer/it/TimerRoutes.java b/integration-test-groups/foundation/timer/src/main/java/org/apache/camel/quarkus/component/timer/it/TimerRoutes.java
index b31dacc533..a379796b23 100644
--- a/integration-test-groups/foundation/timer/src/main/java/org/apache/camel/quarkus/component/timer/it/TimerRoutes.java
+++ b/integration-test-groups/foundation/timer/src/main/java/org/apache/camel/quarkus/component/timer/it/TimerRoutes.java
@@ -25,7 +25,7 @@ public class TimerRoutes extends RouteBuilder {
 
     @Override
     public void configure() {
-        from("timer:keep-alive")
+        from("timer:keep-alive?repeatCount=1")
                 .routeId("timer")
                 .setBody().constant("I'm alive !")
                 .process(e -> LOG.infof("keep-alive: %s", e.getMessage().getBody(String.class)));