Skip to content

Commit

Permalink
Disable batch of intermittently failing unit tests (#3629)
Browse files Browse the repository at this point in the history
  • Loading branch information
theohax committed Jan 24, 2022
1 parent 7b87933 commit b2d43af
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 15 deletions.
10 changes: 8 additions & 2 deletions nano/core_test/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ TEST (active_transactions, inactive_votes_cache_existing_vote)
ASSERT_EQ (0, node.stats.count (nano::stat::type::election, nano::stat::detail::vote_cached));
}

TEST (active_transactions, inactive_votes_cache_multiple_votes)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3632
TEST (active_transactions, DISABLED_inactive_votes_cache_multiple_votes)
{
nano::system system;
nano::node_config node_config (nano::get_available_port (), system.logging);
Expand Down Expand Up @@ -933,7 +936,10 @@ TEST (active_transactions, confirmation_consistency)
}
}

TEST (active_transactions, confirm_new)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3634
TEST (active_transactions, DISABLED_confirm_new)
{
nano::system system (1);
auto & node1 = *system.nodes[0];
Expand Down
5 changes: 4 additions & 1 deletion nano/core_test/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,10 @@ TEST (bootstrap_processor, lazy_max_pull_count)
node1->stop ();
}

TEST (bootstrap_processor, lazy_unclear_state_link)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3640
TEST (bootstrap_processor, DISABLED_lazy_unclear_state_link)
{
nano::system system;
nano::node_config config (nano::get_available_port (), system.logging);
Expand Down
5 changes: 4 additions & 1 deletion nano/core_test/confirmation_height.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,10 @@ TEST (confirmation_height, all_block_types)
}

/* Bulk of the this test was taken from the node.fork_flip test */
TEST (confirmation_height, conflict_rollback_cemented)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3633
TEST (confirmation_height, DISABLED_conflict_rollback_cemented)
{
auto test_mode = [] (nano::confirmation_height_mode mode_a) {
boost::iostreams::stream_buffer<nano::stringstream_mt_sink> sb;
Expand Down
5 changes: 4 additions & 1 deletion nano/core_test/distributed_work.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ TEST (distributed_work, peer_malicious)
ASSERT_EQ (0, malicious_peer2->cancels);
}

TEST (distributed_work, peer_multi)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3630
TEST (distributed_work, DISABLED_peer_multi)
{
nano::system system (1);
auto node (system.nodes[0]);
Expand Down
5 changes: 4 additions & 1 deletion nano/core_test/election.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ TEST (election, construction)
election->transition_active ();
}

TEST (election, quorum_minimum_flip_success)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3635
TEST (election, DISABLED_quorum_minimum_flip_success)
{
nano::system system;
nano::node_config node_config (nano::get_available_port (), system.logging);
Expand Down
5 changes: 4 additions & 1 deletion nano/core_test/ledger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,10 @@ TEST (votes, add_old)
}

// Lower timestamps are accepted for different accounts
TEST (votes, add_old_different_account)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3631
TEST (votes, DISABLED_add_old_different_account)
{
nano::system system (1);
auto & node1 (*system.nodes[0]);
Expand Down
10 changes: 8 additions & 2 deletions nano/core_test/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2657,7 +2657,10 @@ TEST (node, DISABLED_vote_by_hash_republish)
ASSERT_TIMELY (10s, node1.balance (key2.pub) == node1.config.receive_minimum.number () * 2);
}

TEST (node, vote_by_hash_epoch_block_republish)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3638
TEST (node, DISABLED_vote_by_hash_epoch_block_republish)
{
nano::system system (2);
auto & node1 (*system.nodes[0]);
Expand Down Expand Up @@ -4351,7 +4354,10 @@ TEST (node, pruning_automatic)
ASSERT_TRUE (node1.ledger.block_or_pruned_exists (send2->hash ()));
}

TEST (node, pruning_age)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3641
TEST (node, DISABLED_pruning_age)
{
nano::system system;
nano::node_config node_config (nano::get_available_port (), system.logging);
Expand Down
5 changes: 4 additions & 1 deletion nano/qt_test/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,10 @@ TEST (wallet, send_locked)
}
}

TEST (wallet, process_block)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3642
TEST (wallet, DISABLED_process_block)
{
nano_qt::eventloop_processor processor;
nano::system system (1);
Expand Down
15 changes: 12 additions & 3 deletions nano/rpc_test/rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,10 @@ TEST (rpc, work_peer_bad)
ASSERT_TIMELY (5s, nano::dev::network_params.work.difficulty (nano::work_version::work_1, hash1, work) >= nano::dev::network_params.work.threshold_base (nano::work_version::work_1));
}

TEST (rpc, work_peer_one)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3639
TEST (rpc, DISABLED_work_peer_one)
{
nano::system system;
auto node1 = add_ipc_enabled_node (system);
Expand All @@ -2242,7 +2245,10 @@ TEST (rpc, work_peer_one)
ASSERT_TIMELY (5s, nano::dev::network_params.work.difficulty (nano::work_version::work_1, key1.pub, work) >= nano::dev::network_params.work.threshold_base (nano::work_version::work_1));
}

TEST (rpc, work_peer_many)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3636
TEST (rpc, DISABLED_work_peer_many)
{
nano::system system1 (1);
nano::system system2;
Expand Down Expand Up @@ -2277,7 +2283,10 @@ TEST (rpc, work_peer_many)
node1.stop ();
}

TEST (rpc, work_version_invalid)
// Test disabled because it's failing intermittently.
// PR in which it got disabled: https://github.com/nanocurrency/nano-node/pull/3629
// Issue for investigating it: https://github.com/nanocurrency/nano-node/issues/3637
TEST (rpc, DISABLED_work_version_invalid)
{
nano::system system;
auto node = add_ipc_enabled_node (system);
Expand Down
4 changes: 2 additions & 2 deletions nano/secure/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ class confirmation_height_info final
confirmation_height_info (uint64_t, nano::block_hash const &);
void serialize (nano::stream &) const;
bool deserialize (nano::stream &);
uint64_t height;
nano::block_hash frontier;
uint64_t height{};
nano::block_hash frontier{};
};

namespace confirmation_height
Expand Down

0 comments on commit b2d43af

Please sign in to comment.