Fixed timer for Ping requests

This commit is contained in:
selva.andre
2012-08-09 22:40:23 +02:00
parent 343f36c4f5
commit 937a7b7060
3 changed files with 30 additions and 25 deletions
@@ -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);
}