From 2dd357ff206a535724853482260dc2f3660a293f Mon Sep 17 00:00:00 2001 From: Ian Craggs Date: Wed, 20 Aug 2014 12:07:21 +0100 Subject: [PATCH] Increase timeouts in test3 to help with Mac build tests --- test/test3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test3.c b/test/test3.c index 850beef..a6fc291 100644 --- a/test/test3.c +++ b/test/test3.c @@ -428,7 +428,7 @@ void singleThread_sendAndReceive(MQTTClient* c, int qos, char* test_topic) if (qos > 0) { - rc = MQTTClient_waitForCompletion(c, dt, 10000L); + rc = MQTTClient_waitForCompletion(c, dt, 20000L); assert("Good rc from waitforCompletion", rc == MQTTCLIENT_SUCCESS, "rc was %d", rc); } @@ -525,7 +525,7 @@ void multiThread_sendAndReceive(MQTTClient* c, int qos, char* test_topic) usleep(100000L); #endif - wait_seconds = 10; + wait_seconds = 20; while ((multiThread_arrivedcount < i) && (wait_seconds-- > 0)) { MyLog(LOGA_DEBUG, "Arrived %d count %d", multiThread_arrivedcount, i); -- GitLab