camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r790774 - /camel/trunk/components/camel-amqp/src/test/java/org/apache/camel/component/amqp/AMQPRouteTest.java
Date Fri, 03 Jul 2009 01:38:36 GMT
Author: ningjiang
Date: Fri Jul  3 01:38:36 2009
New Revision: 790774

URL: http://svn.apache.org/viewvc?rev=790774&view=rev
Log:
Try to fix the TC test error on windows

Modified:
    camel/trunk/components/camel-amqp/src/test/java/org/apache/camel/component/amqp/AMQPRouteTest.java

Modified: camel/trunk/components/camel-amqp/src/test/java/org/apache/camel/component/amqp/AMQPRouteTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-amqp/src/test/java/org/apache/camel/component/amqp/AMQPRouteTest.java?rev=790774&r1=790773&r2=790774&view=diff
==============================================================================
--- camel/trunk/components/camel-amqp/src/test/java/org/apache/camel/component/amqp/AMQPRouteTest.java
(original)
+++ camel/trunk/components/camel-amqp/src/test/java/org/apache/camel/component/amqp/AMQPRouteTest.java
Fri Jul  3 01:38:36 2009
@@ -62,7 +62,12 @@
 
         resultEndpoint.message(0).header("cheese").isEqualTo(123);
 
-        sendExchange(expectedBody);        
+        sendExchange(expectedBody);
+        
+        if (System.getProperty("os.name").startsWith("Windows")) {
+            // send the message twice to walk around the AMQP's drop first message issue
on Windows box
+            sendExchange(expectedBody);
+        }
 
         resultEndpoint.assertIsSatisfied();
     }



Mime
View raw message