Skip to content

Commit 3324b9c

Browse files
committed
Fixing issue with TLSHostnameVerificationTest.
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
1 parent fcd8e51 commit 3324b9c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

org.eclipse.paho.client.mqttv3.test/src/test/java/org/eclipse/paho/client/mqttv3/test/TLSHostnameVerificationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ public void testValidHTTPSStyleHostnameVerification() throws Exception {
8787

8888
log.info("Connecting to: " + serverURI);
8989
mqttClient.connect(connOpts);
90-
91-
Thread.sleep(2000);
90+
Assert.assertTrue(mqttClient.isConnected());
9291

9392
log.info("Disconnetting...");
9493
mqttClient.disconnect();
@@ -142,8 +141,9 @@ public void testValidWebSocketHTTPSStyleHostnameVerification() throws Exception
142141

143142
log.info("Connecting to: " + serverURI);
144143
mqttClient.connect(connOpts);
144+
Assert.assertTrue(mqttClient.isConnected());
145+
log.info("Client is connected.");
145146

146-
Thread.sleep(2000);
147147

148148
log.info("Disconnetting...");
149149
mqttClient.disconnect();

0 commit comments

Comments
 (0)