aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-06-09 20:05:50 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-06-09 20:05:50 -0700
commitcd3bb6b16ed1c9b485ee219af51d96d461d9a174 (patch)
treec3ddcf62eb9ba3459f702026efae5825359d2e8f
parent34b11dfb55a940de9030d06d5de82ee08c40645a (diff)
Fix broken assert
-rw-r--r--test/core/iomgr/fd_posix_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/iomgr/fd_posix_test.c b/test/core/iomgr/fd_posix_test.c
index c506645b9d..7bb80f3050 100644
--- a/test/core/iomgr/fd_posix_test.c
+++ b/test/core/iomgr/fd_posix_test.c
@@ -76,8 +76,8 @@ static void create_test_socket(int port, int *socket_fd,
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one));
/* Reset the size of socket send buffer to the minimal value to facilitate
buffer filling up and triggering notify_on_write */
- GPR_ASSERT(grpc_set_socket_sndbuf(fd, buffer_size_bytes));
- GPR_ASSERT(grpc_set_socket_rcvbuf(fd, buffer_size_bytes));
+ GPR_ASSERT(grpc_set_socket_sndbuf(fd, buffer_size_bytes) == GRPC_ERROR_NONE);
+ GPR_ASSERT(grpc_set_socket_rcvbuf(fd, buffer_size_bytes) == GRPC_ERROR_NONE);
/* Make fd non-blocking */
flags = fcntl(fd, F_GETFL, 0);
GPR_ASSERT(fcntl(fd, F_SETFL, flags | O_NONBLOCK) == 0);