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/03/04 13:20:50 UTC

camel git commit: Skip test which dont run well on windows

Repository: camel
Updated Branches:
  refs/heads/master 658dcff5f -> b42359c50


Skip test which dont run well on windows


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

Branch: refs/heads/master
Commit: b42359c50142dedb35d3852e292c0a3c67914446
Parents: 658dcff
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Mar 4 13:22:01 2015 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Mar 4 13:22:01 2015 +0100

----------------------------------------------------------------------
 .../camel/management/ManagedThrottlerTest.java    | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b42359c5/camel-core/src/test/java/org/apache/camel/management/ManagedThrottlerTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/management/ManagedThrottlerTest.java b/camel-core/src/test/java/org/apache/camel/management/ManagedThrottlerTest.java
index 6eb9605..5570e16 100644
--- a/camel-core/src/test/java/org/apache/camel/management/ManagedThrottlerTest.java
+++ b/camel-core/src/test/java/org/apache/camel/management/ManagedThrottlerTest.java
@@ -48,7 +48,7 @@ public class ManagedThrottlerTest extends ManagementTestSupport {
         // gets them.  We'll check the total time of the second and third
         // batches as it seems that there is some time required to prime
         // things, which can vary significantly... particularly on slower
-        // machines. 
+        // machines.
         for (int i = 0; i < 10; i++) {
             template.sendBody("direct:start", "Message " + i);
         }
@@ -63,10 +63,10 @@ public class ManagedThrottlerTest extends ManagementTestSupport {
 
         // use route to get the total time
         ObjectName routeName = ObjectName.getInstance("org.apache.camel:context=camel-1,type=routes,name=\"route1\"");
-        
+
         // reset the counters
         mbeanServer.invoke(routeName, "reset", null, null);
-        
+
         // send in 10 messages
         for (int i = 0; i < 10; i++) {
             template.sendBody("direct:start", "Message " + i);
@@ -109,6 +109,10 @@ public class ManagedThrottlerTest extends ManagementTestSupport {
         if (isPlatform("aix")) {
             return;
         }
+        if (isPlatform("windows")) {
+            // windows needs more sleep to read updated jmx values so we skip as we dont want further delays in core tests
+            return;
+        }
 
         // get the stats for the route
         MBeanServer mbeanServer = getMBeanServer();
@@ -151,6 +155,10 @@ public class ManagedThrottlerTest extends ManagementTestSupport {
         if (isPlatform("aix")) {
             return;
         }
+        if (isPlatform("windows")) {
+            // windows needs more sleep to read updated jmx values so we skip as we dont want further delays in core tests
+            return;
+        }
 
         // get the stats for the route
         MBeanServer mbeanServer = getMBeanServer();
@@ -195,6 +203,10 @@ public class ManagedThrottlerTest extends ManagementTestSupport {
         if (isPlatform("aix")) {
             return;
         }
+        if (isPlatform("windows")) {
+            // windows needs more sleep to read updated jmx values so we skip as we dont want further delays in core tests
+            return;
+        }
 
         // get the stats for the route
         MBeanServer mbeanServer = getMBeanServer();