mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +08:00
Problem: test case is leaking test socket
Solution: close test socket
This commit is contained in:
parent
54240dccbb
commit
5e2da02528
@ -49,6 +49,8 @@ void test_monitor_invalid_protocol_fails ()
|
|||||||
// Socket monitoring only works over inproc://
|
// Socket monitoring only works over inproc://
|
||||||
TEST_ASSERT_FAILURE_ERRNO (
|
TEST_ASSERT_FAILURE_ERRNO (
|
||||||
EPROTONOSUPPORT, zmq_socket_monitor (client, "tcp://127.0.0.1:*", 0));
|
EPROTONOSUPPORT, zmq_socket_monitor (client, "tcp://127.0.0.1:*", 0));
|
||||||
|
|
||||||
|
test_context_socket_close_zero_linger (client);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_monitor_basic ()
|
void test_monitor_basic ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user