mirror of
https://github.com/monero-project/monero.git
synced 2025-12-10 07:22:34 +01:00
[fix] log level change. compilation: dns, tests
old unbound #warning does not block compilation unit tests build fine. Even though the RPC/P2P network type is required again
This commit is contained in:
@@ -186,6 +186,11 @@ namespace
|
||||
|
||||
class net_load_test_clt : public ::testing::Test
|
||||
{
|
||||
public:
|
||||
net_load_test_clt()
|
||||
: m_tcp_server(epee::net_utils::e_connection_type_RPC) // RPC disables network limit for unit tests
|
||||
{
|
||||
}
|
||||
protected:
|
||||
virtual void SetUp()
|
||||
{
|
||||
@@ -237,7 +242,7 @@ namespace
|
||||
{
|
||||
// Stop server
|
||||
test_levin_commands_handler commands_handler;
|
||||
test_tcp_server tcp_server;
|
||||
test_tcp_server tcp_server(epee::net_utils::e_connection_type_NET);
|
||||
tcp_server.get_config_object().m_pcommands_handler = &commands_handler;
|
||||
tcp_server.get_config_object().m_invoke_timeout = CONNECTION_TIMEOUT;
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@ int main(int argc, char** argv)
|
||||
|
||||
size_t thread_count = (std::max)(min_thread_count, std::thread::hardware_concurrency() / 2);
|
||||
|
||||
test_tcp_server tcp_server;
|
||||
test_tcp_server tcp_server(epee::net_utils::e_connection_type_RPC);
|
||||
if (!tcp_server.init_server(srv_port, "127.0.0.1"))
|
||||
return 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user