[ 
https://issues.apache.org/jira/browse/QUARKS-67?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15208634#comment-15208634
 ] 

ASF GitHub Bot commented on QUARKS-67:
--------------------------------------

Github user ddebrunner commented on a diff in the pull request:

    https://github.com/apache/incubator-quarks/pull/44#discussion_r57184506
  
    --- Diff: 
connectors/wsclient-javax.websocket/src/test/java/quarks/tests/connectors/wsclient/javax/websocket/WebSocketClientTest.java
 ---
    @@ -678,6 +681,24 @@ public void testSslClientAuthNeg() throws Exception {
             completeAndValidate("", t, rcvd, SEC_TMO, new String[0]);  //rcv 
nothing
         }
         
    +    private void skipTestIfCantConnect(Properties config) throws Exception 
{
    +        String wsUri = config.getProperty("ws.uri");
    +        // Skip tests if the WebSocket server can't be contacted.
    +        try {
    +            URI uri = new URI(wsUri);
    +            int port = uri.getPort();
    +            if (port == -1)
    +                port = uri.getScheme().equals("ws") ? 80 : 443;
    +            Socket s = new Socket();
    +            s.connect(new InetSocketAddress(uri.getHost(), port), 
5*1000/*cn-timeout-msec*/);
    +            s.close();
    +        } catch (Exception e) {
    +            System.err.println("Unable to connect to WebSocket server 
"+wsUri+" : "+e.getMessage());
    +            e.printStackTrace();
    +            assumeTrue(false);
    --- End diff --
    
    Is it possible to use the overload that takes a message that will be 
reported in the junit report, or does that require a newer version of JUnit?


> WebSocketClientTest failed: public server tests
> -----------------------------------------------
>
>                 Key: QUARKS-67
>                 URL: https://issues.apache.org/jira/browse/QUARKS-67
>             Project: Quarks
>          Issue Type: Bug
>          Components: Connectors
>         Environment:  on Travis run and windows
>            Reporter: May Wone
>            Priority: Minor
>         Attachments: 
> TEST-quarks.tests.connectors.wsclient.javax.websocket.WebSocketClientTest.xml
>
>
> https://travis-ci.org/apache/incubator-quarks/builds/117860182
> BUILD FAILED
> C:\users\ibm_admin\git\incubator-quarks\build.xml:72: The following error 
> occurred while executing this line:
> C:\users\ibm_admin\git\incubator-quarks\build.xml:115: The following error 
> occurred while executing this line:
> C:\users\ibm_admin\git\incubator-quarks\common-build.xml:177: Test 
> quarks.tests.connectors.wsclient.javax.websocket.WebSocketClientTest failed
> Running on Windows results in the same error.
> Junit test output to be attached.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to