From 50c2f7af8fd236248bada9d4779ab4cebc1216ec Mon Sep 17 00:00:00 2001 From: somdoron Date: Tue, 3 May 2016 19:46:34 +0300 Subject: [PATCH] fix sndbuf/rcvbuf tests --- tests/test_setsockopt.cpp | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/tests/test_setsockopt.cpp b/tests/test_setsockopt.cpp index fe659bf6..eb59ea87 100644 --- a/tests/test_setsockopt.cpp +++ b/tests/test_setsockopt.cpp @@ -40,15 +40,7 @@ void test_setsockopt_tcp_recv_buffer (void) rc = zmq_getsockopt (socket, ZMQ_RCVBUF, &val, &placeholder); assert (rc == 0); - assert (val == 8192); - - rc = zmq_setsockopt (socket, ZMQ_RCVBUF, &val, sizeof (val)); - assert (rc == 0); - assert (val == 8192); - - rc = zmq_getsockopt (socket, ZMQ_RCVBUF, &val, &placeholder); - assert (rc == 0); - assert (val == 8192); + assert (val == -1); val = 16384; @@ -75,15 +67,7 @@ void test_setsockopt_tcp_send_buffer (void) rc = zmq_getsockopt (socket, ZMQ_SNDBUF, &val, &placeholder); assert (rc == 0); - assert (val == 8192); - - rc = zmq_setsockopt (socket, ZMQ_SNDBUF, &val, sizeof (val)); - assert (rc == 0); - assert (val == 8192); - - rc = zmq_getsockopt (socket, ZMQ_SNDBUF, &val, &placeholder); - assert (rc == 0); - assert (val == 8192); + assert (val == -1); val = 16384;