Increase SNMP test timeout

This commit is contained in:
Sergey Lyubka 2021-11-25 17:31:41 +00:00
parent 013520b0c0
commit 24e8c4d81a

View File

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