camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1404065 - in /camel/branches/camel-2.9.x: ./ camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java
Date Wed, 31 Oct 2012 09:48:46 GMT
Author: davsclaus
Date: Wed Oct 31 09:48:45 2012
New Revision: 1404065

URL: http://svn.apache.org/viewvc?rev=1404065&view=rev
Log:
CAMEL-5750: Fixed test on slow CI servers

Modified:
    camel/branches/camel-2.9.x/   (props changed)
    camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java

Propchange: camel/branches/camel-2.9.x/
------------------------------------------------------------------------------
  Merged /camel/trunk:r1404031
  Merged /camel/branches/camel-2.10.x:r1404061

Propchange: camel/branches/camel-2.9.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

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=1404065&r1=1404064&r2=1404065&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
Wed Oct 31 09:48:45 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);
 



Mime
View raw message