Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6AE98D0E5 for ; Wed, 31 Oct 2012 08:36:01 +0000 (UTC) Received: (qmail 25707 invoked by uid 500); 31 Oct 2012 08:36:01 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 25630 invoked by uid 500); 31 Oct 2012 08:36:00 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 25609 invoked by uid 99); 31 Oct 2012 08:36:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2012 08:36:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2012 08:35:58 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id DDCB323888FD; Wed, 31 Oct 2012 08:35:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1404031 - /camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConcurrentWriteAppendSameFileTest.java Date: Wed, 31 Oct 2012 08:35:13 -0000 To: commits@camel.apache.org From: davsclaus@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121031083513.DDCB323888FD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: davsclaus Date: Wed Oct 31 08:35:13 2012 New Revision: 1404031 URL: http://svn.apache.org/viewvc?rev=1404031&view=rev Log: CAMEL-5750: Fixed test on slow CI servers 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=1404031&r1=1404030&r2=1404031&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 Wed Oct 31 08:35:13 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);