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

Tests: make test-tcp-write-error pass on XP

  • Loading branch information...
piscisaureus committed May 4, 2012
1 parent 6037684 commit ef9a9f1f7834b6ea04ba398be49983600bc7d46b
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test-tcp-write-error.c
@@ -100,7 +100,7 @@ static void connect_cb(uv_connect_t* req, int status) {
r = uv_write(&(wr->req), req->handle, &wr->buf, 1, write_cb);
ASSERT(r == 0);

if (req->handle->write_queue_size > 0) {
if (req->handle->write_queue_size >= size * 2) {
break;
}
}
@@ -161,7 +161,7 @@ TEST_IMPL(tcp_write_error) {
ASSERT(r == 0);

ASSERT(write_cb_called > 0);
ASSERT(write_cb_error_called == 1);
ASSERT(write_cb_error_called >= 1);
ASSERT(tcp_client.write_queue_size == 0);

return 0;

0 comments on commit ef9a9f1

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