Author: davsclaus
Date: Wed Oct 31 09:47:07 2012
New Revision: 1404061
URL: http://svn.apache.org/viewvc?rev=1404061&view=rev
Log:
CAMEL-5750: Fixed test on slow CI servers
Modified:
camel/branches/camel-2.10.x/ (props changed)
camel/branches/camel-2.10.x/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java
Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
Merged /camel/trunk:r1404031
Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
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=1404061&r1=1404060&r2=1404061&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
Wed Oct 31 09:47:07 2012
@@ -28,7 +28,7 @@ import org.apache.camel.component.mock.M
public class FileConcurrentWriteAppendSameFileTest extends ContextTestSupport {
- private final int size = 500;
+ private final int size = 100;
@Override
protected void setUp() throws Exception {
@@ -52,12 +52,12 @@ public class FileConcurrentWriteAppendSa
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);
+ Thread.sleep(1000);
context.startRoute("foo");
assertMockEndpointsSatisfied();
- // check the file has 500 lines
+ // check the file has correct number of lines
String txt = context.getTypeConverter().convertTo(String.class, new
File("target/concurrent/outbox/result.txt"));
assertNotNull(txt);