From ecdd455c6cbe2a5ae6c3705097d3e19ad2a10e90 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@806165 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/qpid/server/logging/SubscriptionLoggingTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'qpid/java') diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java index 002eadf8a3..849103b2dc 100644 --- a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java +++ b/qpid/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