camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r893123 - /camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/discovery/JmsDiscoveryTest.java
Date Tue, 22 Dec 2009 09:26:07 GMT
Author: davsclaus
Date: Tue Dec 22 09:26:06 2009
New Revision: 893123

URL: http://svn.apache.org/viewvc?rev=893123&view=rev
Log:
CAMEL-1483: Stop unit test quicker due graceful shutdown wanting to be too gentle

Modified:
    camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/discovery/JmsDiscoveryTest.java

Modified: camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/discovery/JmsDiscoveryTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/discovery/JmsDiscoveryTest.java?rev=893123&r1=893122&r2=893123&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/discovery/JmsDiscoveryTest.java
(original)
+++ camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/discovery/JmsDiscoveryTest.java
Tue Dec 22 09:26:06 2009
@@ -39,6 +39,9 @@
     public void testDiscovery() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedMinimumMessageCount(1);
+        mock.setResultWaitTime(5000);
+        // force shutdown after 5 seconds as otherwise the bean will keep generating a new
input
+        context.getShutdownStrategy().setTimeout(5);
 
         assertMockEndpointsSatisfied();
 



Mime
View raw message