Skip to content

Commit

Permalink
Problem: test_reqrep_tcp does not test disconnect/unbind
Browse files Browse the repository at this point in the history
Solution: add disconnect and unbind calls to the test
  • Loading branch information
bluca committed Sep 17, 2016
1 parent 8d723fe commit 75219e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_reqrep_tcp.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 75219e3

Please sign in to comment.