Repository: camel
Updated Branches:
  refs/heads/master b66dfe73c -> f97d7b095


Fix test on slower boxes such as windows


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

Branch: refs/heads/master
Commit: f97d7b0958ffff5f91defe776878e20e051c112c
Parents: b66dfe7
Author: Claus Ibsen <[email protected]>
Authored: Wed Mar 4 14:36:53 2015 +0100
Committer: Claus Ibsen <[email protected]>
Committed: Wed Mar 4 14:37:01 2015 +0100

----------------------------------------------------------------------
 .../src/test/java/org/apache/camel/processor/ThrottlerTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f97d7b09/camel-core/src/test/java/org/apache/camel/processor/ThrottlerTest.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/test/java/org/apache/camel/processor/ThrottlerTest.java 
b/camel-core/src/test/java/org/apache/camel/processor/ThrottlerTest.java
index 31ecd58..1cabab3 100644
--- a/camel-core/src/test/java/org/apache/camel/processor/ThrottlerTest.java
+++ b/camel-core/src/test/java/org/apache/camel/processor/ThrottlerTest.java
@@ -89,7 +89,7 @@ public class ThrottlerTest extends ContextTestSupport {
         // now assert that they have actually been throttled
         long minimumTime = (messageCount - 1) * INTERVAL;
         // add a little slack
-        long delta = System.currentTimeMillis() - start + 200;
+        long delta = System.currentTimeMillis() - start + 750;
         assertTrue("Should take at least " + minimumTime + "ms, was: " + 
delta, delta >= minimumTime);
         executor.shutdownNow();
     }

Reply via email to