Skip to content

Commit

Permalink
FIX CONTINUOUS VOTING TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Jan 28, 2024
1 parent 506bd4b commit e18f683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nano/core_test/election.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,6 @@ TEST (election, continuous_voting)
ASSERT_TRUE (nano::test::process (node1, { send2 }));
ASSERT_TIMELY (5s, node1.active.active (*send2));

// Ensure votes are generated in continuous manner
ASSERT_TIMELY (5s, node1.stats.count (nano::stat::type::election, nano::stat::detail::generate_vote) >= 5);
// Ensure votes are broadcasted in continuous manner
ASSERT_TIMELY (5s, node1.stats.count (nano::stat::type::election, nano::stat::detail::broadcast_vote) >= 5);
}

0 comments on commit e18f683

Please sign in to comment.