Fixed failing test due to more strict endpoint check from Netty 4.1.x
This commit is contained in:
@@ -71,16 +71,17 @@ public class ServerIntegrationWebSocketTest {
|
|||||||
@Test
|
@Test
|
||||||
public void checkPlainConnect() throws Exception {
|
public void checkPlainConnect() throws Exception {
|
||||||
LOG.info("*** checkPlainConnect ***");
|
LOG.info("*** checkPlainConnect ***");
|
||||||
String destUri = "ws://localhost:" + BrokerConstants.WEBSOCKET_PORT;
|
String destUri = "ws://localhost:" + BrokerConstants.WEBSOCKET_PORT + "/mqtt";
|
||||||
|
|
||||||
MQTTWebSocket socket = new MQTTWebSocket();
|
MQTTWebSocket socket = new MQTTWebSocket();
|
||||||
client.start();
|
client.start();
|
||||||
URI echoUri = new URI(destUri);
|
URI echoUri = new URI(destUri);
|
||||||
ClientUpgradeRequest request = new ClientUpgradeRequest();
|
ClientUpgradeRequest request = new ClientUpgradeRequest();
|
||||||
client.connect(socket, echoUri, request);
|
client.connect(socket, echoUri, request);
|
||||||
LOG.info("Connecting to : %s", echoUri);
|
LOG.info("Connecting to : {}", echoUri);
|
||||||
boolean connected = socket.awaitConnected(4, TimeUnit.SECONDS);
|
boolean connected = socket.awaitConnected(4, TimeUnit.SECONDS);
|
||||||
|
LOG.info("Connected was : {}", connected);
|
||||||
|
|
||||||
assertTrue(connected);
|
assertTrue(connected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user