mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-25 22:44:06 +02:00
Problem: poller_t simple modify test case missing
This commit is contained in:
parent
85e05b0c88
commit
3fcd58d3f0
@ -289,7 +289,7 @@ TEST(poller, modify_invalid_socket_throws)
|
||||
ASSERT_THROW (poller.modify (a, ZMQ_POLLIN), zmq::error_t);
|
||||
}
|
||||
|
||||
TEST(poller, modified_not_added_throws)
|
||||
TEST(poller, modify_not_added_throws)
|
||||
{
|
||||
zmq::context_t context;
|
||||
zmq::socket_t a {context, zmq::socket_type::push};
|
||||
@ -299,6 +299,15 @@ TEST(poller, modified_not_added_throws)
|
||||
ASSERT_THROW (poller.modify (b, ZMQ_POLLIN), zmq::error_t);
|
||||
}
|
||||
|
||||
TEST(poller, modify_simple)
|
||||
{
|
||||
zmq::context_t context;
|
||||
zmq::socket_t a {context, zmq::socket_type::push};
|
||||
zmq::poller_t poller;
|
||||
ASSERT_NO_THROW (poller.add (a, ZMQ_POLLIN, zmq::poller_t::handler_t {}));
|
||||
ASSERT_NO_THROW (poller.modify (a, ZMQ_POLLIN|ZMQ_POLLOUT));
|
||||
}
|
||||
|
||||
TEST(poller, poll_client_server)
|
||||
{
|
||||
// Setup server and client
|
||||
|
Loading…
x
Reference in New Issue
Block a user