mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Problem: no assertions for endpoint addresses on ZMQ_EVENT_MONITOR_STOPPED and ZMQ_EVENT_LISTENING events
Solution: added assertions
This commit is contained in:
parent
5e2da02528
commit
f3561f7759
@ -174,10 +174,11 @@ void test_monitor_versioned_basic ()
|
||||
|
||||
expect_monitor_event_v2 (client_mon, ZMQ_EVENT_HANDSHAKE_SUCCEEDED,
|
||||
client_local_address, client_remote_address);
|
||||
expect_monitor_event_v2 (client_mon, ZMQ_EVENT_MONITOR_STOPPED);
|
||||
expect_monitor_event_v2 (client_mon, ZMQ_EVENT_MONITOR_STOPPED, "", "");
|
||||
|
||||
// This is the flow of server events
|
||||
expect_monitor_event_v2 (server_mon, ZMQ_EVENT_LISTENING);
|
||||
expect_monitor_event_v2 (server_mon, ZMQ_EVENT_LISTENING,
|
||||
client_remote_address, "");
|
||||
expect_monitor_event_v2 (server_mon, ZMQ_EVENT_ACCEPTED,
|
||||
client_remote_address, client_local_address);
|
||||
expect_monitor_event_v2 (server_mon, ZMQ_EVENT_HANDSHAKE_SUCCEEDED,
|
||||
|
Loading…
x
Reference in New Issue
Block a user