camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject [camel] branch master updated: [CAMEL-12104]a little bit revise for the CxfConsumerContinuationTimeoutTest
Date Thu, 01 Mar 2018 08:23:51 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 5805a12  [CAMEL-12104]a little bit revise for the CxfConsumerContinuationTimeoutTest
     new ff58f89  Merge branch 'master' of github.com:apache/camel
5805a12 is described below

commit 5805a124ee5e76b61bf7bdb12ff0273669e2e730
Author: Freeman Fang <freeman.fang@gmail.com>
AuthorDate: Thu Mar 1 16:20:41 2018 +0800

    [CAMEL-12104]a little bit revise for the CxfConsumerContinuationTimeoutTest
---
 .../camel/component/cxf/CxfConsumerContinuationTimeoutTest.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 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 49a942e..3ba421c 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
@@ -83,7 +83,7 @@ public class CxfConsumerContinuationTimeoutTest extends CamelTestSupport
{
                             pool.submit(() -> {
                                 try {
                                     log.info("Sleeping for 50 seconds to simulate slow response");
-                                    Thread.sleep(50000);
+                                    Thread.sleep(35000);
                                 } catch (InterruptedException e) {
                                     // ignore
                                 } finally {
@@ -116,8 +116,8 @@ public class CxfConsumerContinuationTimeoutTest extends CamelTestSupport
{
     @Test
     @Ignore("CAMEL-12104")
     public void testTimeout() throws Exception {
-        Object out = template.requestBodyAndHeader("direct:start", "Bye World", "priority",
"slow", String.class);
-        // here we should get some kind of timeout 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."));
     }
 
 }

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

Mime
View raw message