Author: aidan
Date: Thu Aug 20 13:33:47 2009
New Revision: 806165

URL: http://svn.apache.org/viewvc?rev=806165&view=rev
Log:
QPID-2060: right, if the results are the wrong size just HOLD ON A MO and retry 
it. Log files sometimes take a while to write, y'know.

Modified:
    
qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java

Modified: 
qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java?rev=806165&r1=806164&r2=806165&view=diff
==============================================================================
--- 
qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java
 (original)
+++ 
qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java
 Thu Aug 20 13:33:47 2009
@@ -344,6 +344,19 @@
         
         //Validate
         List<String> results = _monitor.findMatches("SUB-1003");
+        
+        if (results.size() != 3)
+        {
+            try
+            {
+                Thread.sleep(1500);    
+            }
+            catch (InterruptedException e)
+            {
+                
+            }
+            results = _monitor.findMatches("SUB-1003");
+        }
 
         try
         {



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscr...@qpid.apache.org

Reply via email to