0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Problem: test case is leaking test socket

Solution: close test socket
This commit is contained in:
Simon Giesecke 2019-02-02 17:15:27 +01:00
parent 54240dccbb
commit 5e2da02528

View File

@ -49,6 +49,8 @@ void test_monitor_invalid_protocol_fails ()
// Socket monitoring only works over inproc://
TEST_ASSERT_FAILURE_ERRNO (
EPROTONOSUPPORT, zmq_socket_monitor (client, "tcp://127.0.0.1:*", 0));
test_context_socket_close_zero_linger (client);
}
void test_monitor_basic ()