From 73d3b00b35a6fd10aedbde58453173e3087c7a1c Mon Sep 17 00:00:00 2001
From: anon <anon [at] nowhere>
Date: Thu, 8 Apr 2021 11:45:27 +0000
Subject: [PATCH] unit_tests: fix boost 1.58 compatibility

---
 tests/unit_tests/node_server.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/unit_tests/node_server.cpp b/tests/unit_tests/node_server.cpp
index 8d5c784eb..775feace8 100644
--- a/tests/unit_tests/node_server.cpp
+++ b/tests/unit_tests/node_server.cpp
@@ -351,7 +351,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);