Author: cmueller Date: Tue Oct 16 19:44:14 2012 New Revision: 1398954 URL: http://svn.apache.org/viewvc?rev=1398954&view=rev Log: fixed unit test which fails randomly on our CI server
Modified: camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java Modified: camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java?rev=1398954&r1=1398953&r2=1398954&view=diff ============================================================================== --- camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java (original) +++ camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java Tue Oct 16 19:44:14 2012 @@ -51,11 +51,13 @@ public class FileConcurrentWriteAppendSa mock.expectsNoDuplicates(body()); mock.setResultWaitTime(30000); + // we need to wait a bit for our slow CI server to make sure the entire file is written on disc + Thread.sleep(100); context.startRoute("foo"); assertMockEndpointsSatisfied(); - // check the file has 5000 lines + // check the file has 500 lines String txt = context.getTypeConverter().convertTo(String.class, new File("target/concurrent/outbox/result.txt")); assertNotNull(txt);