File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ TEST(poller, modify_invalid_socket_throws)
289
289
ASSERT_THROW (poller.modify (a, ZMQ_POLLIN), zmq::error_t );
290
290
}
291
291
292
- TEST (poller, modified_not_added_throws )
292
+ TEST (poller, modify_not_added_throws )
293
293
{
294
294
zmq::context_t context;
295
295
zmq::socket_t a {context, zmq::socket_type::push};
@@ -299,6 +299,15 @@ TEST(poller, modified_not_added_throws)
299
299
ASSERT_THROW (poller.modify (b, ZMQ_POLLIN), zmq::error_t );
300
300
}
301
301
302
+ TEST (poller, modify_simple)
303
+ {
304
+ zmq::context_t context;
305
+ zmq::socket_t a {context, zmq::socket_type::push};
306
+ zmq::poller_t poller;
307
+ ASSERT_NO_THROW (poller.add (a, ZMQ_POLLIN, zmq::poller_t ::handler_t {}));
308
+ ASSERT_NO_THROW (poller.modify (a, ZMQ_POLLIN|ZMQ_POLLOUT));
309
+ }
310
+
302
311
TEST (poller, poll_client_server)
303
312
{
304
313
// Setup server and client
You can’t perform that action at this time.
0 commit comments