You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ni...@apache.org on 2009/08/28 04:10:53 UTC

svn commit: r808731 - /cxf/trunk/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/JMSDestinationTest.java

Author: ningjiang
Date: Fri Aug 28 02:10:52 2009
New Revision: 808731

URL: http://svn.apache.org/viewvc?rev=808731&view=rev
Log:
Fixed the JMSDestinationTest 

Modified:
    cxf/trunk/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/JMSDestinationTest.java

Modified: cxf/trunk/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/JMSDestinationTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/JMSDestinationTest.java?rev=808731&r1=808730&r2=808731&view=diff
==============================================================================
--- cxf/trunk/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/JMSDestinationTest.java (original)
+++ cxf/trunk/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/JMSDestinationTest.java Fri Aug 28 02:10:52 2009
@@ -174,8 +174,6 @@
     }
 
     @Test
-    @org.junit.Ignore("randomly fails.  Not sure why. Tried increased"
-                      + "timeouts and such to no affect. - dkulp")
     public void testDurableSubscriber() throws Exception {
         SpringBusFactory bf = new SpringBusFactory();
         BusFactory.setDefaultBus(null);
@@ -188,6 +186,8 @@
         Message outMessage = new MessageImpl();
         setupMessageHeader(outMessage);
         JMSDestination destination = setupJMSDestination(true);
+        // The JMSBroker (ActiveMQ 5.x) need to take some time to setup the DurableSubscriber
+        Thread.sleep(2000);
         sendoutMessage(conduit, outMessage, true);
         // wait for the message to be get from the destination
         //long time = System.currentTimeMillis();