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:
John Barboza 2018-03-19 07:30:40 -07:00 committed by cjihrig
parent 9051126b56
commit 67a00e27c1
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

@ -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++;
}