Skip to content

Commit 2dd357f

Browse files
author
Ian Craggs
committed
Increase timeouts in test3 to help with Mac build tests
1 parent a29ac8b commit 2dd357f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ void singleThread_sendAndReceive(MQTTClient* c, int qos, char* test_topic)
428428

429429
if (qos > 0)
430430
{
431-
rc = MQTTClient_waitForCompletion(c, dt, 10000L);
431+
rc = MQTTClient_waitForCompletion(c, dt, 20000L);
432432
assert("Good rc from waitforCompletion", rc == MQTTCLIENT_SUCCESS, "rc was %d", rc);
433433
}
434434

@@ -525,7 +525,7 @@ void multiThread_sendAndReceive(MQTTClient* c, int qos, char* test_topic)
525525
usleep(100000L);
526526
#endif
527527

528-
wait_seconds = 10;
528+
wait_seconds = 20;
529529
while ((multiThread_arrivedcount < i) && (wait_seconds-- > 0))
530530
{
531531
MyLog(LOGA_DEBUG, "Arrived %d count %d", multiThread_arrivedcount, i);

0 commit comments

Comments
 (0)