diff --git a/tests/test_ctx_options.cpp b/tests/test_ctx_options.cpp index 0c104de7..ecdeb3ca 100644 --- a/tests/test_ctx_options.cpp +++ b/tests/test_ctx_options.cpp @@ -34,8 +34,7 @@ int main (void) assert (zmq_ctx_get (ctx, ZMQ_SOCKET_LIMIT) == ZMQ_MAX_SOCKETS_DFLT); #elif defined(ZMQ_USE_POLL) || defined(ZMQ_USE_EPOLL) \ || defined(ZMQ_USE_DEVPOLL) || defined(ZMQ_USE_KQUEUE) - assert (zmq_ctx_get (ctx, ZMQ_SOCKET_LIMIT) - == std::numeric_limits::max()); + assert (zmq_ctx_get (ctx, ZMQ_SOCKET_LIMIT) == 65535); #endif assert (zmq_ctx_get (ctx, ZMQ_IO_THREADS) == ZMQ_IO_THREADS_DFLT); assert (zmq_ctx_get (ctx, ZMQ_IPV6) == 0);