aboutsummaryrefslogtreecommitdiff
path: root/test/test-tcp-try-write-error.c
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-06-27 13:27:34 -0400
committercjihrig <cjihrig@gmail.com>2019-06-27 17:23:53 -0400
commitf66db9c5c58dc552e00507c404b2975633eddee2 (patch)
tree56c949cf8ce85bcbe3c96fdd4ad4060c599d5a89 /test/test-tcp-try-write-error.c
parent1a06462cd33fb94720d639f40db3522313945adf (diff)
downloadlibuv-f66db9c5c58dc552e00507c404b2975633eddee2.tar.gz
libuv-f66db9c5c58dc552e00507c404b2975633eddee2.zip
test: allow UV_ECONNRESET in tcp_try_write_error
Recent CI failures imply that uv_try_write() can return UV_ECONNRESET - specifically on FreeBSD. This commit updates the test to pass when that error code is returned. PR-URL: https://github.com/libuv/libuv/pull/2355 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/test-tcp-try-write-error.c')
-rw-r--r--test/test-tcp-try-write-error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-tcp-try-write-error.c b/test/test-tcp-try-write-error.c
index 58d4723c..2201d0ea 100644
--- a/test/test-tcp-try-write-error.c
+++ b/test/test-tcp-try-write-error.c
@@ -48,7 +48,7 @@ static void incoming_close_cb(uv_handle_t* handle) {
while (r > 0)
r = uv_try_write((uv_stream_t*) &client, &buf, 1);
fprintf(stderr, "uv_try_write error: %d %s\n", r, uv_strerror(r));
- ASSERT(r == UV_EPIPE || r == UV_ECONNABORTED);
+ ASSERT(r == UV_EPIPE || r == UV_ECONNABORTED || r == UV_ECONNRESET);
ASSERT(client.write_queue_size == 0);
}