test: fix tcp_oob test flakiness
`EAGAIN` is an acceptable return value for `read()` and the test was not taking it into account. Fixes: https://github.com/libuv/libuv/issues/1602 PR-URL: https://github.com/libuv/libuv/pull/1759 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
502decd620
commit
d6dadc0739
@ -61,7 +61,7 @@ static void read_cb(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf) {
|
||||
#endif
|
||||
uv_os_fd_t fd;
|
||||
|
||||
ASSERT(nread > 0);
|
||||
ASSERT(nread >= 0);
|
||||
ASSERT(0 == uv_fileno((uv_handle_t*)handle, &fd));
|
||||
ASSERT(0 == uv_idle_start(&idle, idle_cb));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user