From 67a00e27c17ad742081b07ca7f59edde46c79786 Mon Sep 17 00:00:00 2001 From: John Barboza Date: Mon, 19 Mar 2018 07:30:40 -0700 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig --- test/test-tcp-write-queue-order.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-tcp-write-queue-order.c b/test/test-tcp-write-queue-order.c index 5119be6d..1ff9c517 100644 --- a/test/test-tcp-write-queue-order.c +++ b/test/test-tcp-write-queue-order.c @@ -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++; }