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 2009/02/05 15:40:08 UTC

svn commit: r741111 - /camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerBeginAndCommitRenameStrategyTest.java

Author: davsclaus
Date: Thu Feb  5 14:40:07 2009
New Revision: 741111

URL: http://svn.apache.org/viewvc?rev=741111&view=rev
Log:
Fixed failing unit test reported by team city.

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerBeginAndCommitRenameStrategyTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerBeginAndCommitRenameStrategyTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerBeginAndCommitRenameStrategyTest.java?rev=741111&r1=741110&r2=741111&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerBeginAndCommitRenameStrategyTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerBeginAndCommitRenameStrategyTest.java Thu Feb  5 14:40:07 2009
@@ -48,10 +48,10 @@
         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"));
+        String content = IOConverter.toString(new File("./target/done/paris.txt").getAbsoluteFile());
         assertEquals("The file should have been renamed", "Hello Paris", content);
     }