Merge pull request #7654

df03288 unit_tests: fix boost 1.58 compatibility (anon)
This commit is contained in:
luigi1111 2021-04-16 12:53:28 -05:00
commit 36a68b0cba
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -352,7 +352,7 @@ TEST(cryptonote_protocol_handler, race_condition)
acceptor.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
acceptor.bind(endpoint, ec);
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);
out->socket().open(endpoint.protocol(), ec);
EXPECT_EQ(ec.value(), 0);