You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/11/19 11:51:03 UTC

[camel] branch main updated: Camel-YAML DSL: The throttle test should use the number of messages as 5 or not 5s

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

acosentino 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 02b9b26  Camel-YAML DSL: The throttle test should use the number of messages as 5 or not 5s
02b9b26 is described below

commit 02b9b268b6c3e7ad7b497b7785c1e3b7990b07b6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Nov 19 12:45:22 2021 +0100

    Camel-YAML DSL: The throttle test should use the number of messages as 5 or not 5s
---
 .../src/test/groovy/org/apache/camel/dsl/yaml/ThrottleTest.groovy   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/ThrottleTest.groovy b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/ThrottleTest.groovy
index 1ec5dca..06682ae 100644
--- a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/ThrottleTest.groovy
+++ b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/ThrottleTest.groovy
@@ -30,7 +30,7 @@ class ThrottleTest extends YamlTestSupport {
             with(context.routeDefinitions[0].outputs[0], ThrottleDefinition) {
                 with (expression, ConstantExpression) {
                     language == 'constant'
-                    expression == '5s'
+                    expression == '5'
                 }
                 executorServiceRef == 'myExecutor'
             }
@@ -41,7 +41,7 @@ class ThrottleTest extends YamlTestSupport {
                         uri: "direct:start"
                         steps:    
                           - throttle:  
-                              constant: "5s"
+                              constant: "5"
                               executor-service-ref: "myExecutor"
                           - to: "mock:result"
                     '''),
@@ -51,7 +51,7 @@ class ThrottleTest extends YamlTestSupport {
                         steps:    
                           - throttle: 
                               expression: 
-                                constant: "5s"
+                                constant: "5"
                               executor-service-ref: "myExecutor"
                           - to: "mock:result"
                     ''')