From b12703f9103a88d59385f98fcd63fae6de7355cb Mon Sep 17 00:00:00 2001 From: Aidan Skinner Date: Thu, 20 Aug 2009 13:33:47 +0000 Subject: 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. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@806165 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/qpid/server/logging/SubscriptionLoggingTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'java') diff --git a/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java b/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java index 002eadf8a3..849103b2dc 100644 --- a/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java +++ b/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java @@ -344,6 +344,19 @@ public class SubscriptionLoggingTest extends AbstractTestLogging //Validate List results = _monitor.findMatches("SUB-1003"); + + if (results.size() != 3) + { + try + { + Thread.sleep(1500); + } + catch (InterruptedException e) + { + + } + results = _monitor.findMatches("SUB-1003"); + } try { -- cgit v1.2.1