summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_hwm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_hwm.cpp b/tests/test_hwm.cpp
index a96193d..9f3aac1 100644
--- a/tests/test_hwm.cpp
+++ b/tests/test_hwm.cpp
@@ -33,14 +33,14 @@ int main (int argc, char *argv [])
void *sb = zmq_socket (ctx, ZMQ_PULL);
assert (sb);
int hwm = 2;
- int rc = zmq_setsockopt (sb, ZMQ_HWM, &hwm, sizeof (hwm));
+ int rc = zmq_setsockopt (sb, ZMQ_RCVHWM, &hwm, sizeof (hwm));
assert (rc == 0);
rc = zmq_bind (sb, "inproc://a");
assert (rc == 0);
void *sc = zmq_socket (ctx, ZMQ_PUSH);
assert (sc);
- rc = zmq_setsockopt (sc, ZMQ_HWM, &hwm, sizeof (hwm));
+ rc = zmq_setsockopt (sc, ZMQ_SNDHWM, &hwm, sizeof (hwm));
assert (rc == 0);
rc = zmq_connect (sc, "inproc://a");
assert (rc == 0);