From 17db97584e4a81c71d4763a4cf3fa2d17b70f6f8 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 30 Jan 2020 15:06:15 +0000 Subject: [PATCH] Fix client keepalive test using too low keepalive. --- test/lib/01-keepalive-pingreq.py | 2 +- test/lib/c/01-keepalive-pingreq.c | 2 +- test/lib/cpp/01-keepalive-pingreq.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/lib/01-keepalive-pingreq.py b/test/lib/01-keepalive-pingreq.py index a58fb45e..e3962b0b 100755 --- a/test/lib/01-keepalive-pingreq.py +++ b/test/lib/01-keepalive-pingreq.py @@ -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) diff --git a/test/lib/c/01-keepalive-pingreq.c b/test/lib/c/01-keepalive-pingreq.c index 4db7a70d..ea62089f 100644 --- a/test/lib/c/01-keepalive-pingreq.c +++ b/test/lib/c/01-keepalive-pingreq.c @@ -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); diff --git a/test/lib/cpp/01-keepalive-pingreq.cpp b/test/lib/cpp/01-keepalive-pingreq.cpp index bf3c81b8..677066b2 100644 --- a/test/lib/cpp/01-keepalive-pingreq.cpp +++ b/test/lib/cpp/01-keepalive-pingreq.cpp @@ -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();