unit_tests: fix boost 1.58 compatibility

This commit is contained in:
anon 2021-04-08 11:45:26 +00:00
parent f6e63ef260
commit df032882a8
No known key found for this signature in database
GPG Key ID: D3857C17AA7F968B
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ TEST(cryptonote_protocol_handler, race_condition)
acceptor.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true)); acceptor.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
acceptor.bind(endpoint, ec); acceptor.bind(endpoint, ec);
EXPECT_EQ(ec.value(), 0); EXPECT_EQ(ec.value(), 0);
acceptor.listen(boost::asio::socket_base::max_listen_connections, ec); acceptor.listen(boost::asio::socket_base::max_connections, ec);
EXPECT_EQ(ec.value(), 0); EXPECT_EQ(ec.value(), 0);
out->socket().open(endpoint.protocol(), ec); out->socket().open(endpoint.protocol(), ec);
EXPECT_EQ(ec.value(), 0); EXPECT_EQ(ec.value(), 0);