cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [1/2] git commit: Add a timeout to speed up the test from 60 seconds down to 5ish
Date Mon, 07 Jul 2014 20:20:46 GMT
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 <dkulp@apache.org>
Authored: Mon Jul 7 14:50:43 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
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();


Mime
View raw message