From 3346082132dc2ff809dfd5d25d451c0b33905f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 27 Mar 2015 08:31:43 +0100 Subject: [PATCH] test: fix tcp_oob occassionally timing out MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by @indutny Fixes: https://github.com/libuv/libuv/issues/258 Reviewed-By: Saúl Ibarra Corretgé Reviewed-By: Fedor Indutny Reviewed-By: Jeremiah Senkpiel --- test/test-tcp-oob.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test-tcp-oob.c b/test/test-tcp-oob.c index fc011ee4..6107af93 100644 --- a/test/test-tcp-oob.c +++ b/test/test-tcp-oob.c @@ -84,14 +84,14 @@ static void connection_cb(uv_stream_t* handle, int status) { * triggering `kevent()` for the first one */ do { - r = send(fd, "hello", 5, MSG_OOB); + r = send(fd, "x", 1, MSG_OOB); } while (r < 0 && errno == EINTR); - ASSERT(5 == r); + ASSERT(1 == r); do { - r = send(fd, "hello", 5, MSG_OOB); + r = send(fd, "x", 1, MSG_OOB); } while (r < 0 && errno == EINTR); - ASSERT(5 == r); + ASSERT(1 == r); ASSERT(0 == uv_stream_set_blocking((uv_stream_t*) &client_handle, 0)); }