You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2018/03/20 06:41:20 UTC

[camel] 02/02: CAMEL-12104: Reduce unit test time

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

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit a26ac21754fb303fee14490702e1383b6ee388e1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Mar 20 07:41:08 2018 +0100

    CAMEL-12104: Reduce unit test time
---
 .../component/cxf/CxfConsumerContinuationTimeoutTest.java      | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConsumerContinuationTimeoutTest.java b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConsumerContinuationTimeoutTest.java
index 75dcf47..d628501 100644
--- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConsumerContinuationTimeoutTest.java
+++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConsumerContinuationTimeoutTest.java
@@ -59,9 +59,9 @@ public class CxfConsumerContinuationTimeoutTest extends CamelTestSupport {
 
                 from("direct:start")
                     .setBody(constant("Sensitive Data"))
-                    .to(simpleEndpointURI + "&continuationTimeout=30000&dataFormat=MESSAGE");
+                    .to(simpleEndpointURI + "&continuationTimeout=5000&dataFormat=MESSAGE");
 
-                from(simpleEndpointURI + "&continuationTimeout=30000&dataFormat=MESSAGE").process(new AsyncProcessor() {
+                from(simpleEndpointURI + "&continuationTimeout=5000&dataFormat=MESSAGE").process(new AsyncProcessor() {
                     @Override
                     public void process(Exchange exchange) throws Exception {
                         AsyncProcessorHelper.process(this, exchange);
@@ -81,8 +81,8 @@ public class CxfConsumerContinuationTimeoutTest extends CamelTestSupport {
                         if ("slow".equalsIgnoreCase(priority)) {
                             pool.submit(() -> {
                                 try {
-                                    log.info("Sleeping for 50 seconds to simulate slow response");
-                                    Thread.sleep(35000);
+                                    log.info("Sleeping for 10 seconds to simulate slow response");
+                                    Thread.sleep(10000);
                                 } catch (InterruptedException e) {
                                     // ignore
                                 } finally {
@@ -115,7 +115,7 @@ public class CxfConsumerContinuationTimeoutTest extends CamelTestSupport {
     @Test
     public void testTimeout() throws Exception {
         String out = template.requestBodyAndHeader("direct:start", "Bye World", "priority", "slow", String.class);
-        assertTrue(out.contains("The OUT message was not received within: 30000 millis."));
+        assertTrue(out.contains("The OUT message was not received within: 5000 millis."));
     }
 
 }

-- 
To stop receiving notification emails like this one, please contact
davsclaus@apache.org.