Disabling network.peer_max_tcp_attempts UT for Windows only (#3622)

This commit is contained in:
Thiago Silva 2021-12-21 09:49:49 -03:00 committed by GitHub
commit 0ec400cb52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -910,6 +910,10 @@ TEST (network, replace_port)
ASSERT_TIMELY (5s, !node0->network.udp_channels.channel (wrong_endpoint) && node0->network.udp_channels.channel (node1->network.endpoint ()));
}
// Test disabled because it's failing repeatedly for Windows + LMDB.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3622
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3621
#ifndef _WIN32
TEST (network, peer_max_tcp_attempts)
{
// Add nodes that can accept TCP connection, but not node ID handshake
@ -929,6 +933,7 @@ TEST (network, peer_max_tcp_attempts)
ASSERT_TRUE (node->network.tcp_channels.reachout (nano::endpoint (node->network.endpoint ().address (), nano::get_available_port ())));
ASSERT_EQ (1, node->stats.count (nano::stat::type::tcp, nano::stat::detail::tcp_max_per_ip, nano::stat::dir::out));
}
#endif
namespace nano
{