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:06 UTC

[2/2] camel git commit: Fixed test

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();