test: increase connection timeout to 1 second
The previous timeout of 1 millisecond could lead to intermittent failures. Increase it to 1 second to be on the safe side. PR-URL: https://github.com/libuv/libuv/pull/1776 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
9051126b56
commit
67a00e27c1
@ -90,7 +90,7 @@ static void connection_cb(uv_stream_t* tcp, int status) {
|
||||
ASSERT(0 == uv_accept(tcp, (uv_stream_t*) &incoming));
|
||||
|
||||
ASSERT(0 == uv_timer_init(uv_default_loop(), &timer));
|
||||
ASSERT(0 == uv_timer_start(&timer, timer_cb, 1, 0));
|
||||
ASSERT(0 == uv_timer_start(&timer, timer_cb, 1000, 0));
|
||||
|
||||
connection_cb_called++;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user