Fix client keepalive test using too low keepalive.

This commit is contained in:
Roger A. Light 2020-01-30 15:06:15 +00:00
parent 11ece604c4
commit 17db97584e
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ from mosq_test_helper import *
port = mosq_test.get_lib_port()
rc = 1
keepalive = 4
keepalive = 5
connect_packet = mosq_test.gen_connect("01-keepalive-pingreq", keepalive=keepalive)
connack_packet = mosq_test.gen_connack(rc=0)

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
mosq = mosquitto_new("01-keepalive-pingreq", true, NULL);
mosquitto_connect_callback_set(mosq, on_connect);
rc = mosquitto_connect(mosq, "localhost", port, 4);
rc = mosquitto_connect(mosq, "localhost", port, 5);
while(run == -1){
mosquitto_loop(mosq, -1, 1);

View File

@ -31,7 +31,7 @@ int main(int argc, char *argv[])
mosq = new mosquittopp_test("01-keepalive-pingreq");
mosq->connect("localhost", port, 4);
mosq->connect("localhost", port, 5);
while(run == -1){
mosq->loop();