You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ai...@apache.org on 2009/08/26 14:38:41 UTC
svn commit: r807983 -
/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java
Author: aidan
Date: Wed Aug 26 12:38:41 2009
New Revision: 807983
URL: http://svn.apache.org/viewvc?rev=807983&view=rev
Log:
QPID-2060: If the result set isn't the right size, try re-reading the log file 10 times, just in case.
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=807983&r1=807982&r2=807983&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 Wed Aug 26 12:38:41 2009
@@ -345,17 +345,19 @@
//Validate
List<String> results = _monitor.findMatches("SUB-1003");
- if (results.size() != 3)
+ int i = 0;
+ while (results.size() != 3 && i < 10)
{
try
{
- Thread.sleep(1500);
+ Thread.sleep(1500);
}
catch (InterruptedException e)
{
}
results = _monitor.findMatches("SUB-1003");
+ i++;
}
try
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org