activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1199955 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/openwire/OpenwireAdvisorysTest.cpp
Date Wed, 09 Nov 2011 20:37:47 GMT
Author: tabish
Date: Wed Nov  9 20:37:47 2011
New Revision: 1199955

URL: http://svn.apache.org/viewvc?rev=1199955&view=rev
Log:
Update the test, the Connection doesn't send the ConnectionInfo right away to allow setClientId
to have effect.  Add call to start() to ensure that the second connection generates an advisory.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/openwire/OpenwireAdvisorysTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/openwire/OpenwireAdvisorysTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/openwire/OpenwireAdvisorysTest.cpp?rev=1199955&r1=1199954&r2=1199955&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/openwire/OpenwireAdvisorysTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/openwire/OpenwireAdvisorysTest.cpp
Wed Nov  9 20:37:47 2011
@@ -83,12 +83,13 @@ void OpenwireAdvisorysTest::testConnecti
 
     std::auto_ptr<Connection> otherConnection( factory->createConnection() );
     CPPUNIT_ASSERT( otherConnection.get() != NULL );
+    otherConnection->start();
 
     std::auto_ptr<cms::Message> message;
     int connectionInfoCount = 0;
 
     do {
-        message.reset( consumer->receive(2000) );
+        message.reset( consumer->receive(3000) );
 
         commands::Message* amqMessage = dynamic_cast<commands::Message*>( message.get()
);
         if(amqMessage != NULL) {



Mime
View raw message