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