You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2015/11/20 08:22:05 UTC

[1/2] camel git commit: Fixed test

Repository: camel
Updated Branches:
  refs/heads/camel-2.16.x 37ce3d913 -> c698ca406
  refs/heads/master 352682148 -> c4cf7c30e


Fixed test


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c4cf7c30
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c4cf7c30
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c4cf7c30

Branch: refs/heads/master
Commit: c4cf7c30e64b1a3c9169d9e6ce10aa9bc8b8c1a5
Parents: 3526821
Author: Claus Ibsen <da...@apache.org>
Authored: Fri Nov 20 08:21:43 2015 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri Nov 20 08:21:43 2015 +0100

----------------------------------------------------------------------
 .../camel/component/jetty/HttpStreamCacheFileResponseTest.java     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/c4cf7c30/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java
index f9432f3..3a5fc63 100644
--- a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java
+++ b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java
@@ -45,6 +45,8 @@ public class HttpStreamCacheFileResponseTest extends BaseJettyTest {
         String out = template.requestBody("http://localhost:{{port}}/myserver", body, String.class);
         assertEquals(body2, out);
 
+        // give time for file to be deleted
+        Thread.sleep(500);
         // the temporary files should have been deleted
         File file = new File("target/cachedir");
         String[] files = file.list();


[2/2] camel git commit: Fixed test

Posted by da...@apache.org.
Fixed test


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c698ca40
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c698ca40
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c698ca40

Branch: refs/heads/camel-2.16.x
Commit: c698ca4068b554c9b69232d09712077b409d4a44
Parents: 37ce3d9
Author: Claus Ibsen <da...@apache.org>
Authored: Fri Nov 20 08:21:43 2015 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri Nov 20 08:21:56 2015 +0100

----------------------------------------------------------------------
 .../camel/component/jetty/HttpStreamCacheFileResponseTest.java     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/c698ca40/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java
index f9432f3..3a5fc63 100644
--- a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java
+++ b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java
@@ -45,6 +45,8 @@ public class HttpStreamCacheFileResponseTest extends BaseJettyTest {
         String out = template.requestBody("http://localhost:{{port}}/myserver", body, String.class);
         assertEquals(body2, out);
 
+        // give time for file to be deleted
+        Thread.sleep(500);
         // the temporary files should have been deleted
         File file = new File("target/cachedir");
         String[] files = file.list();