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 2010/08/30 21:48:19 UTC
svn commit: r990922 -
/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/failover/FailoverTransportTest.cpp
Author: tabish
Date: Mon Aug 30 19:48:18 2010
New Revision: 990922
URL: http://svn.apache.org/viewvc?rev=990922&view=rev
Log:
Ensure the test gives up some CPU time while its waiting for Failover reconnect.
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/failover/FailoverTransportTest.cpp
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/failover/FailoverTransportTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/failover/FailoverTransportTest.cpp?rev=990922&r1=990921&r2=990922&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/failover/FailoverTransportTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/failover/FailoverTransportTest.cpp Mon Aug 30 19:48:18 2010
@@ -569,6 +569,7 @@ void FailoverTransportTest::testTranspor
MockTransport* mock = NULL;
while( mock == NULL ) {
+ Thread::sleep( 100 );
mock = dynamic_cast<MockTransport*>( transport->narrow( typeid( MockTransport ) ) );
}
@@ -578,10 +579,11 @@ void FailoverTransportTest::testTranspor
mock->fireCommand( control );
failover->removeURI( true, removals );
- Thread::sleep( 1000 );
+ Thread::sleep( 2000 );
mock = NULL;
while( mock == NULL ) {
+ Thread::sleep( 100 );
mock = dynamic_cast<MockTransport*>( transport->narrow( typeid( MockTransport ) ) );
}