Github user dlaboss commented on a diff in the pull request:
https://github.com/apache/incubator-quarks/pull/44#discussion_r57199290
--- 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 --
Yup, those overloads seem to have been added in added in 4.11.
DEVELOPMENT.md says only 4.10 is required.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---