mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-24 02:59:01 +08:00
Increase sntp test timeout
This commit is contained in:
parent
55e2077a46
commit
32406b678b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user