Skip to content

Commit

Permalink
Fix inactive_votes_cache.election_start (#4803)
Browse files Browse the repository at this point in the history
Co-authored-by: gr0vity <[email protected]>
  • Loading branch information
gr0vity-dev and gr0vity authored Dec 5, 2024
1 parent 73bbdfd commit 932372a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nano/core_test/active_elections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,8 @@ TEST (inactive_votes_cache, election_start)
node.vote_processor.vote (vote0, std::make_shared<nano::transport::inproc::channel> (node, node));
ASSERT_TIMELY_EQ (5s, 0, node.active.size ());
ASSERT_TIMELY_EQ (5s, 5, node.ledger.cemented_count ());
ASSERT_TRUE (nano::test::confirmed (node, { send1, send2, open1, open2 }));
// Confirmation on disk may lag behind cemented_count cache
ASSERT_TIMELY (5s, nano::test::confirmed (node, { send1, send2, open1, open2 }));

// A late block arrival also checks the inactive votes cache
ASSERT_TRUE (node.active.empty ());
Expand Down

0 comments on commit 932372a

Please sign in to comment.