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

Commit

Permalink
Tests: make test-tcp-write-error pass on XP
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed May 4, 2012
1 parent 6037684 commit ef9a9f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test-tcp-write-error.c
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ef9a9f1

Please sign in to comment.