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 2012/05/21 14:01:56 UTC
svn commit: r1340982 - in /camel/branches/camel-2.9.x: ./
camel-core/src/test/java/org/apache/camel/component/file/FileConsumerSuspendAndResumeTest.java
Author: davsclaus
Date: Mon May 21 12:01:56 2012
New Revision: 1340982
URL: http://svn.apache.org/viewvc?rev=1340982&view=rev
Log:
Fixed test
Modified:
camel/branches/camel-2.9.x/ (props changed)
camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerSuspendAndResumeTest.java
Propchange: camel/branches/camel-2.9.x/
------------------------------------------------------------------------------
Merged /camel/trunk:r1340972
Propchange: camel/branches/camel-2.9.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified: camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerSuspendAndResumeTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerSuspendAndResumeTest.java?rev=1340982&r1=1340981&r2=1340982&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerSuspendAndResumeTest.java (original)
+++ camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerSuspendAndResumeTest.java Mon May 21 12:01:56 2012
@@ -47,8 +47,7 @@ public class FileConsumerSuspendAndResum
template.sendBodyAndHeader("file://target/suspended", "Hello World", Exchange.FILE_NAME, "hello.txt");
assertMockEndpointsSatisfied();
-
- Thread.sleep(250);
+ oneExchangeDone.matchesMockWaitTime();
// the route is suspended by the policy so we should only receive one
String[] files = new File("target/suspended/").getAbsoluteFile().list();