activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r990922 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/failover/FailoverTransportTest.cpp
Date Mon, 30 Aug 2010 19:48:19 GMT
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
) ) );
     }
 



Mime
View raw message