Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

test: make pipe_connect_to_file succeed with ECONNREFUSED

  • Loading branch information...
Igor Zinkovsky
Igor Zinkovsky committed Mar 1, 2012
1 parent 6bbccf1 commit 702f905f73418ddf3c8372663f97229797cbb6a9
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/test-pipe-connect-error.c
@@ -52,7 +52,8 @@ static void connect_cb(uv_connect_t* connect_req, int status) {

static void connect_cb_file(uv_connect_t* connect_req, int status) {
ASSERT(status == -1);
ASSERT(uv_last_error(uv_default_loop()).code == UV_ENOTSOCK);
ASSERT(uv_last_error(uv_default_loop()).code == UV_ENOTSOCK ||
uv_last_error(uv_default_loop()).code == UV_ECONNREFUSED);
uv_close((uv_handle_t*)connect_req->handle, close_cb);
connect_cb_called++;
}

0 comments on commit 702f905

Please sign in to comment.
You can’t perform that action at this time.