camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r782197 - /camel/branches/camel-1.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerCommitRenameStrategyTest.java
Date Sat, 06 Jun 2009 07:02:07 GMT
Author: davsclaus
Date: Sat Jun  6 07:02:06 2009
New Revision: 782197

URL: http://svn.apache.org/viewvc?rev=782197&view=rev
Log:
Fixed unit test occationally failed on TC.

Modified:
    camel/branches/camel-1.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerCommitRenameStrategyTest.java

Modified: camel/branches/camel-1.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerCommitRenameStrategyTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerCommitRenameStrategyTest.java?rev=782197&r1=782196&r2=782197&view=diff
==============================================================================
--- camel/branches/camel-1.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerCommitRenameStrategyTest.java
(original)
+++ camel/branches/camel-1.x/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerCommitRenameStrategyTest.java
Sat Jun  6 07:02:06 2009
@@ -48,7 +48,7 @@
         mock.assertIsSatisfied();
 
         // sleep to let the file consumer do its renaming
-        Thread.sleep(100);
+        Thread.sleep(500);
 
         // content of file should be Hello Paris
         String content = IOConverter.toString(new File("./target/done/paris.txt"));
@@ -75,7 +75,7 @@
         mock.assertIsSatisfied();
 
         // sleep to let the file consumer do its renaming
-        Thread.sleep(100);
+        Thread.sleep(500);
 
         // content of file should be Hello London
         String content = IOConverter.toString(new File("./target/done/london.txt"));
@@ -85,7 +85,7 @@
     protected RouteBuilder createRouteBuilder() throws Exception {
         return new RouteBuilder() {
             public void configure() throws Exception {
-                from("file://target/reports?moveNamePrefix=../done/&consumer.delay=5000").to("mock:report");
+                from("file://target/reports?moveNamePrefix=../done/&consumer.delay=2000").to("mock:report");
             }
         };
     }



Mime
View raw message