camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject git commit: Trying to fix the tests failing on the CI-Server being recently re-enabled after the upgrade to AMQ 5.9.
Date Mon, 28 Oct 2013 15:12:24 GMT
Updated Branches:
  refs/heads/master 5affc221c -> 9b0c6756c


Trying to fix the tests failing on the CI-Server being recently re-enabled after the upgrade
to AMQ 5.9.

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/9b0c6756
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9b0c6756
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9b0c6756

Branch: refs/heads/master
Commit: 9b0c6756c7cfc65455a0b60545758d1ab11d77ea
Parents: 5affc22
Author: Babak Vahdat <bvahdat@apache.org>
Authored: Mon Oct 28 16:12:15 2013 +0100
Committer: Babak Vahdat <bvahdat@apache.org>
Committed: Mon Oct 28 16:12:15 2013 +0100

----------------------------------------------------------------------
 .../itest/sql/FromJmsToJdbcIdempotentConsumerToJmsTest.java  | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9b0c6756/tests/camel-itest/src/test/java/org/apache/camel/itest/sql/FromJmsToJdbcIdempotentConsumerToJmsTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest/src/test/java/org/apache/camel/itest/sql/FromJmsToJdbcIdempotentConsumerToJmsTest.java
b/tests/camel-itest/src/test/java/org/apache/camel/itest/sql/FromJmsToJdbcIdempotentConsumerToJmsTest.java
index b67afe6..2bff6df 100644
--- a/tests/camel-itest/src/test/java/org/apache/camel/itest/sql/FromJmsToJdbcIdempotentConsumerToJmsTest.java
+++ b/tests/camel-itest/src/test/java/org/apache/camel/itest/sql/FromJmsToJdbcIdempotentConsumerToJmsTest.java
@@ -133,6 +133,10 @@ public class FromJmsToJdbcIdempotentConsumerToJmsTest extends CamelSpringTestSup
 
         template.sendBodyAndHeader("activemq:queue:inbox", "B", "uid", 456);
 
+        // cater for slow servers
+        getMockEndpoint("mock:a").setResultWaitTime(30000);
+        getMockEndpoint("mock:b").setResultWaitTime(30000);
+
         // assert mock and wait for the message to be done
         assertMockEndpointsSatisfied();
         assertTrue("Should complete 7 messages", notify.matchesMockWaitTime());
@@ -161,6 +165,10 @@ public class FromJmsToJdbcIdempotentConsumerToJmsTest extends CamelSpringTestSup
         template.sendBodyAndHeader("activemq:queue:inbox", "E", "uid", 222);
         template.sendBodyAndHeader("activemq:queue:inbox", "D", "uid", 111);
 
+        // cater for slow servers
+        getMockEndpoint("mock:a").setResultWaitTime(30000);
+        getMockEndpoint("mock:b").setResultWaitTime(30000);
+
         // assert mock and wait for the message to be done
         assertMockEndpointsSatisfied();
         assertTrue("Should complete 3 messages", notify.matchesMockWaitTime());


Mime
View raw message