ext/libuv/test/test-tcp-open.c in uvrb-0.1.4 vs ext/libuv/test/test-tcp-open.c in uvrb-0.2.0

- old
+ new

@@ -99,22 +99,21 @@ if (nread >= 0) { ASSERT(nread == 4); ASSERT(memcmp("PING", buf.base, nread) == 0); } else { - ASSERT(uv_last_error(uv_default_loop()).code == UV_EOF); + ASSERT(nread == UV_EOF); printf("GOT EOF\n"); uv_close((uv_handle_t*)tcp, close_cb); } } static void write_cb(uv_write_t* req, int status) { ASSERT(req != NULL); if (status) { - uv_err_t err = uv_last_error(uv_default_loop()); - fprintf(stderr, "uv_write error: %s\n", uv_strerror(err)); + fprintf(stderr, "uv_write error: %s\n", uv_strerror(status)); ASSERT(0); } write_cb_called++; }