You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2017/08/02 15:49:50 UTC

[3/3] cxf git commit: The latest JDK on Mac seems to throw a timeout exception instead of a connect exception.

The latest JDK on Mac seems to throw a timeout exception instead of a connect exception.


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/598a45d5
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/598a45d5
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/598a45d5

Branch: refs/heads/master
Commit: 598a45d5b2add46995cbced55209be7ecacd4a51
Parents: 88489dd
Author: Daniel Kulp <dk...@apache.org>
Authored: Wed Aug 2 11:38:01 2017 -0400
Committer: Daniel Kulp <dk...@apache.org>
Committed: Wed Aug 2 11:38:01 2017 -0400

----------------------------------------------------------------------
 .../java/org/apache/cxf/systest/ws/addr_wsdl/WSAPureWsdlTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/598a45d5/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/addr_wsdl/WSAPureWsdlTest.java
----------------------------------------------------------------------
diff --git a/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/addr_wsdl/WSAPureWsdlTest.java b/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/addr_wsdl/WSAPureWsdlTest.java
index 25aef5f..77ea5aa 100644
--- a/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/addr_wsdl/WSAPureWsdlTest.java
+++ b/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/addr_wsdl/WSAPureWsdlTest.java
@@ -110,7 +110,8 @@ public class WSAPureWsdlTest extends AbstractWSATestBase {
         } catch (Exception t) {
             //expected
             assertTrue(t.getCause().getCause().toString(),
-                       t.getCause().getCause() instanceof java.net.ConnectException);
+                       t.getCause().getCause() instanceof java.net.ConnectException 
+                       ||  t.getCause().getCause() instanceof java.net.SocketTimeoutException);
         }
         synchronized (handler) {
             port.addNumbersAsync(25,  25, handler);