Author: cmueller
Date: Tue Oct 16 19:34:32 2012
New Revision: 1398944
URL: http://svn.apache.org/viewvc?rev=1398944&view=rev
Log:
fixed unit test which fails randomly on our CI server
Modified:
camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java
Modified:
camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java
URL:
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java?rev=1398944&r1=1398943&r2=1398944&view=diff
==============================================================================
---
camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java
(original)
+++
camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java
Tue Oct 16 19:34:32 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);