Fix client keepalive test using too low keepalive.
This commit is contained in:
parent
11ece604c4
commit
17db97584e
@ -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)
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user