activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r885997 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/correlator/ResponseCorrelatorTest.cpp
Date Tue, 01 Dec 2009 23:10:52 GMT
Author: tabish
Date: Tue Dec  1 23:10:51 2009
New Revision: 885997

URL: http://svn.apache.org/viewvc?rev=885997&view=rev
Log:
Tweak the correlator test a bit to better emulate real world usage.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/correlator/ResponseCorrelatorTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/correlator/ResponseCorrelatorTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/correlator/ResponseCorrelatorTest.cpp?rev=885997&r1=885996&r2=885997&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/correlator/ResponseCorrelatorTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/correlator/ResponseCorrelatorTest.cpp
Tue Dec  1 23:10:51 2009
@@ -301,6 +301,7 @@
 
             try{
                 resp = transport->request(cmd);
+                Thread::sleep(10);
             }catch( ... ){
                 CPPUNIT_ASSERT( false );
             }
@@ -454,7 +455,7 @@
         }
 
         // Start all the requester threads.
-        const unsigned int numRequests = 100;
+        const unsigned int numRequests = 20;
         RequestThread requesters[numRequests];
         for( unsigned int ix=0; ix<numRequests; ++ix ){
             requesters[ix].setTransport( &correlator );



Mime
View raw message