You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: org.eclipse.paho.client.mqttv3.test/src/test/java/org/eclipse/paho/client/mqttv3/test/SendReceiveAsyncTest.java
+3-13Lines changed: 3 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -164,7 +164,7 @@ public void testConAndDiscon() throws Exception {
164
164
LoggingUtilities.banner(log, cclass, methodName);
165
165
166
166
IMqttAsyncClientclient = null;
167
-
intmax_loop_count = 100;
167
+
intmax_loop_count = 50;
168
168
169
169
try {
170
170
StringclientId = methodName;
@@ -185,7 +185,7 @@ public void testConAndDiscon() throws Exception {
185
185
}
186
186
finally {
187
187
if (client.isConnected()) {
188
-
client.disconnectForcibly();;
188
+
client.disconnectForcibly(2000);
189
189
}
190
190
client.close();
191
191
}
@@ -676,10 +676,6 @@ public void testConnectTimeout() throws Exception {
676
676
catch (Exceptionexception) {
677
677
log.log(Level.INFO, "Connect action failed as expected.");
0 commit comments