You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2009/12/02 00:10:52 UTC
svn commit: r885997 -
/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/correlator/ResponseCorrelatorTest.cpp
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 );