camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1145126 - in /camel/trunk/camel-core/src/test/java/org/apache/camel: component/file/FileProduceAppendTest.java processor/ShutdownCompleteAllTasksTest.java
Date Mon, 11 Jul 2011 11:17:18 GMT
Author: davsclaus
Date: Mon Jul 11 11:17:17 2011
New Revision: 1145126

URL: http://svn.apache.org/viewvc?rev=1145126&view=rev
Log:
Fixed test due CI failures.

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileProduceAppendTest.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ShutdownCompleteAllTasksTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileProduceAppendTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileProduceAppendTest.java?rev=1145126&r1=1145125&r2=1145126&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileProduceAppendTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileProduceAppendTest.java
Mon Jul 11 11:17:17 2011
@@ -44,7 +44,7 @@ public class FileProduceAppendTest exten
         mock.expectedFileExists("target/test-file-append/hello.txt", "Hello World");
 
         // create a file with some content we want to append to the existing file
-        File in = new File("target/test-file-append/world.txt").getAbsoluteFile();
+        File in = new File("target/test-file-append/world.txt");
         template.sendBody("direct:start", in);
 
         assertMockEndpointsSatisfied();

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ShutdownCompleteAllTasksTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ShutdownCompleteAllTasksTest.java?rev=1145126&r1=1145125&r2=1145126&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ShutdownCompleteAllTasksTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ShutdownCompleteAllTasksTest.java
Mon Jul 11 11:17:17 2011
@@ -77,7 +77,6 @@ public class ShutdownCompleteAllTasksTes
                 from(url).routeId("foo").noAutoStartup()
                     // let it complete all tasks during shutdown
                     .shutdownRunningTask(ShutdownRunningTask.CompleteAllTasks)
-                    .delay(1000)
                     .process(new MyProcessor())
                     .to("mock:bar");
             }
@@ -88,6 +87,7 @@ public class ShutdownCompleteAllTasksTes
     public static class MyProcessor implements Processor {
 
         public void process(Exchange exchange) throws Exception {
+            Thread.sleep(500);
             counter.incrementAndGet();
         }
     }



Mime
View raw message