aboutsummaryrefslogtreecommitdiff
path: root/test/test-tcp-write-queue-order.c
diff options
context:
space:
mode:
authorJohn Barboza <jbarboza@ca.ibm.com>2018-03-19 07:30:40 -0700
committercjihrig <cjihrig@gmail.com>2018-03-31 17:05:26 -0400
commit67a00e27c17ad742081b07ca7f59edde46c79786 (patch)
treef28293ee8f464377d9585b10f0bb573c6cdb35b9 /test/test-tcp-write-queue-order.c
parent9051126b56c3dd8241f3bc6068c934fdee16deca (diff)
downloadlibuv-67a00e27c17ad742081b07ca7f59edde46c79786.tar.gz
libuv-67a00e27c17ad742081b07ca7f59edde46c79786.zip
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>
Diffstat (limited to 'test/test-tcp-write-queue-order.c')
-rw-r--r--test/test-tcp-write-queue-order.c2
1 files changed, 1 insertions, 1 deletions
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++;
}