Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
test: make pipe_connect_to_file succeed with ECONNREFUSED
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zinkovsky committed Mar 1, 2012
1 parent 6bbccf1 commit 702f905
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test-pipe-connect-error.c
Expand Up @@ -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++;
}
Expand Down

0 comments on commit 702f905

Please sign in to comment.