test: reduce timeout in tcp_close_while_connecting
Somtimes (once every 10 runs or so) the socket would 'connect' before 'uv_close' was called. This caused EHOSTUNREACH to be set for SO_ERROR instead of ECANCELED. PR-URL: https://github.com/libuv/libuv/pull/744 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
parent
b015b4d0ee
commit
e76e21389b
@ -72,7 +72,7 @@ TEST_IMPL(tcp_close_while_connecting) {
|
||||
RETURN_SKIP("Network unreachable.");
|
||||
ASSERT(r == 0);
|
||||
ASSERT(0 == uv_timer_init(loop, &timer1_handle));
|
||||
ASSERT(0 == uv_timer_start(&timer1_handle, timer1_cb, 50, 0));
|
||||
ASSERT(0 == uv_timer_start(&timer1_handle, timer1_cb, 1, 0));
|
||||
ASSERT(0 == uv_timer_init(loop, &timer2_handle));
|
||||
ASSERT(0 == uv_timer_start(&timer2_handle, timer2_cb, 86400 * 1000, 0));
|
||||
ASSERT(0 == uv_run(loop, UV_RUN_DEFAULT));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user