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 B216611DA9 for ; Mon, 7 Jul 2014 20:20:46 +0000 (UTC) Received: (qmail 57332 invoked by uid 500); 7 Jul 2014 20:20:46 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 57268 invoked by uid 500); 7 Jul 2014 20:20:46 -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 57259 invoked by uid 99); 7 Jul 2014 20:20:46 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jul 2014 20:20:46 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 48E458ADDE5; Mon, 7 Jul 2014 20:20:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dkulp@apache.org To: commits@cxf.apache.org Date: Mon, 07 Jul 2014 20:20:46 -0000 Message-Id: <64b786abda6449a2ac0486bc3dbbd733@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: Add a timeout to speed up the test from 60 seconds down to 5ish Repository: cxf Updated Branches: refs/heads/master c1617b0a1 -> 1075d1f47 Add a timeout to speed up the test from 60 seconds down to 5ish Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/f372fffe Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f372fffe Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f372fffe Branch: refs/heads/master Commit: f372fffe46870f44ba491afbff1807d4a8799b75 Parents: c1617b0 Author: Daniel Kulp Authored: Mon Jul 7 14:50:43 2014 -0400 Committer: Daniel Kulp Committed: Mon Jul 7 14:50:43 2014 -0400 ---------------------------------------------------------------------- .../test/java/org/apache/cxf/systest/ws/rm/SequenceTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/f372fffe/systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/SequenceTest.java ---------------------------------------------------------------------- diff --git a/systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/SequenceTest.java b/systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/SequenceTest.java index 4946657..1b3b9c3 100644 --- a/systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/SequenceTest.java +++ b/systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/SequenceTest.java @@ -766,8 +766,9 @@ public class SequenceTest extends AbstractBusClientServerTestBase { greeter.greetMe("one"); try { - greeter.greetMe("two"); - fail("Expected timeout."); + ((BindingProvider)greeter).getRequestContext().put("cxf.synchronous.timeout", 5000); + String s = greeter.greetMe("two"); + fail("Expected timeout. Received response: " + s); } catch (WebServiceException ex) { assertTrue("Unexpected exception cause", ex.getCause() instanceof IOException); IOException ie = (IOException)ex.getCause();