camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r782582 - /camel/branches/camel-1.x/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FromFtpToFileNoFileNameHeaderTest.java
Date Mon, 08 Jun 2009 10:11:14 GMT
Author: davsclaus
Date: Mon Jun  8 10:11:13 2009
New Revision: 782582

URL: http://svn.apache.org/viewvc?rev=782582&view=rev
Log:
Fixed unit test failure on AIX reported by TC.

Modified:
    camel/branches/camel-1.x/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FromFtpToFileNoFileNameHeaderTest.java

Modified: camel/branches/camel-1.x/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FromFtpToFileNoFileNameHeaderTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FromFtpToFileNoFileNameHeaderTest.java?rev=782582&r1=782581&r2=782582&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FromFtpToFileNoFileNameHeaderTest.java
(original)
+++ camel/branches/camel-1.x/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FromFtpToFileNoFileNameHeaderTest.java
Mon Jun  8 10:11:13 2009
@@ -41,12 +41,11 @@
         resultEndpoint.assertIsSatisfied();
 
         // wait until the file producer has written the file
-        Thread.sleep(1000);
+        Thread.sleep(2000);
 
         // assert the file
-        File file = new File("target/ftptest/hello.txt");
+        File file = new File("target/ftptest/hello.txt").getAbsoluteFile();
         assertTrue("The file should exists", file.exists());
-        assertTrue("File size wrong", file.length() > 10);
 
         // let some time pass to let the consumer etc. properly do its business before closing
         Thread.sleep(1000);



Mime
View raw message