Increase sntp test timeout

This commit is contained in:
Sergey Lyubka 2021-07-22 23:03:20 +01:00
parent 55e2077a46
commit 32406b678b

View File

@ -234,7 +234,7 @@ static void test_sntp(void) {
ASSERT(c != NULL);
ASSERT(c->is_udp == 1);
mg_sntp_send(c, (unsigned long) time(NULL));
for (i = 0; i < 70 && tv.tv_sec == 0; i++) mg_mgr_poll(&mgr, 10);
for (i = 0; i < 200 && tv.tv_sec == 0; i++) mg_mgr_poll(&mgr, 10);
ASSERT(tv.tv_sec > 0);
mg_mgr_free(&mgr);