Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C4899726 for ; Fri, 11 May 2012 17:34:25 +0000 (UTC) Received: (qmail 11428 invoked by uid 500); 11 May 2012 17:34:25 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 11376 invoked by uid 500); 11 May 2012 17:34:25 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 11369 invoked by uid 99); 11 May 2012 17:34:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2012 17:34:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2012 17:34:24 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 36A112388847; Fri, 11 May 2012 17:34:04 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1337291 - /cxf/trunk/systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/ClientPersistenceTest.java Date: Fri, 11 May 2012 17:34:04 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120511173404.36A112388847@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dkulp Date: Fri May 11 17:34:03 2012 New Revision: 1337291 URL: http://svn.apache.org/viewvc?rev=1337291&view=rev Log: Fix some random failures where we may need to wait for an additional message to get all the acks. Modified: cxf/trunk/systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/ClientPersistenceTest.java Modified: cxf/trunk/systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/ClientPersistenceTest.java URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/ClientPersistenceTest.java?rev=1337291&r1=1337290&r2=1337291&view=diff ============================================================================== --- cxf/trunk/systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/ClientPersistenceTest.java (original) +++ cxf/trunk/systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/ClientPersistenceTest.java Fri May 11 17:34:03 2012 @@ -27,6 +27,8 @@ import java.util.logging.Logger; import javax.xml.ws.BindingProvider; import javax.xml.ws.Endpoint; +import junit.framework.AssertionFailedError; + import org.apache.cxf.Bus; import org.apache.cxf.BusFactory; import org.apache.cxf.bus.spring.SpringBusFactory; @@ -270,8 +272,16 @@ public class ClientPersistenceTest exten // mf.verifyActions(expectedActions, false); // mf.verifyAcknowledgements(new boolean[]{true, true, false}, false); - // verify the final ack range to be complete - mf.verifyAcknowledgementRange(1, 5); + // verify the final ack range to be complete + try { + mf.verifyAcknowledgementRange(1, 5); + } catch (AssertionFailedError er) { + //possibly only got the first 2 ranges when split in 3, lets + //wait for the third and then recheck + awaitMessages(1, 3); + mf.reset(out.getOutboundMessages(), in.getInboundMessages()); + mf.verifyAcknowledgementRange(1, 5); + } } void recover() throws Exception {