Skip to content

Commit

Permalink
Disabling network.peer_max_tcp_attempts UT for Windows only (nanocurr…
Browse files Browse the repository at this point in the history
  • Loading branch information
thsfs authored Dec 21, 2021
1 parent 7029596 commit 0ec400c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nano/core_test/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
{
Expand Down

0 comments on commit 0ec400c

Please sign in to comment.