From 9c350937822ce408b31037709742e1faf11c64f8 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 17 Sep 2016 18:51:11 +0100 Subject: [PATCH] Problem: test_reqrep_tcp does not test disconnect/unbind Solution: add disconnect and unbind calls to the test --- tests/test_reqrep_tcp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_reqrep_tcp.cpp b/tests/test_reqrep_tcp.cpp index dc2294bb..2b229235 100644 --- a/tests/test_reqrep_tcp.cpp +++ b/tests/test_reqrep_tcp.cpp @@ -46,6 +46,12 @@ void test_single_connect_ipv4 (void) bounce (sb, sc); + rc = zmq_disconnect (sc, "tcp://127.0.0.1:5560"); + assert (rc == 0); + + rc = zmq_unbind (sb, "tcp://127.0.0.1:5560"); + assert (rc == 0); + rc = zmq_close (sc); assert (rc == 0);