camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r946141 - in /camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios: NagiosConfiguraitonRefTest.java NagiosEventNotifierTest.java
Date Wed, 19 May 2010 12:05:39 GMT
Author: davsclaus
Date: Wed May 19 12:05:39 2010
New Revision: 946141

URL: http://svn.apache.org/viewvc?rev=946141&view=rev
Log:
Fixed test on other boxes

Modified:
    camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosConfiguraitonRefTest.java
    camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosEventNotifierTest.java

Modified: camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosConfiguraitonRefTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosConfiguraitonRefTest.java?rev=946141&r1=946140&r2=946141&view=diff
==============================================================================
--- camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosConfiguraitonRefTest.java
(original)
+++ camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosConfiguraitonRefTest.java
Wed May 19 12:05:39 2010
@@ -87,6 +87,9 @@ public class NagiosConfiguraitonRefTest 
 
         assertMockEndpointsSatisfied();
 
+        // sleep a little to let nagios stub process the payloads
+        Thread.sleep(1000);
+
         assertEquals(1, nagios.getMessagePayloadList().size());
 
         MessagePayload payload = nagios.getMessagePayloadList().get(0);

Modified: camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosEventNotifierTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosEventNotifierTest.java?rev=946141&r1=946140&r2=946141&view=diff
==============================================================================
--- camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosEventNotifierTest.java
(original)
+++ camel/trunk/components/camel-nagios/src/test/java/org/apache/camel/component/nagios/NagiosEventNotifierTest.java
Wed May 19 12:05:39 2010
@@ -33,7 +33,6 @@ import org.junit.Test;
 public class NagiosEventNotifierTest extends CamelTestSupport {
     protected boolean canRun;
     private NagiosNscaStub nagios;
-    
 
     @Override
     protected boolean useJmx() {
@@ -93,6 +92,9 @@ public class NagiosEventNotifierTest ext
 
         context.stop();
 
+        // sleep a little to let nagios stub process the payloads
+        Thread.sleep(2000);
+
         List<MessagePayload> events = nagios.getMessagePayloadList();
         assertTrue("Should be 11+ events, was: " + events.size(), events.size() >= 11);
     }
@@ -111,6 +113,9 @@ public class NagiosEventNotifierTest ext
 
         context.stop();
 
+        // sleep a little to let nagios stub process the payloads
+        Thread.sleep(2000);
+
         List<MessagePayload> events = nagios.getMessagePayloadList();
         assertTrue("Should be 9+ events, was: " + events.size(), events.size() >= 9);
     }



Mime
View raw message