Fixed timer for Ping requests
This commit is contained in:
@@ -37,6 +37,7 @@ public class ServerIntegrationTest {
|
||||
public void testSubscribe() throws IOException, InterruptedException {
|
||||
// startServer();
|
||||
Client client = new Client("localhost", Server.PORT);
|
||||
// Client client = new Client("test.mosquitto.org", 1883);
|
||||
client.connect();
|
||||
|
||||
|
||||
@@ -49,10 +50,8 @@ public class ServerIntegrationTest {
|
||||
|
||||
client.publish("/topic", "Test my payload".getBytes());
|
||||
|
||||
|
||||
client.close();
|
||||
|
||||
|
||||
assertTrue(received);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user