diff --git a/nano/core_test/vote_cache.cpp b/nano/core_test/vote_cache.cpp index bc00d7f458..711f8a31b4 100644 --- a/nano/core_test/vote_cache.cpp +++ b/nano/core_test/vote_cache.cpp @@ -137,7 +137,7 @@ TEST (vote_cache, insert_many_hashes_many_votes) vote_cache.insert (vote3); // Ensure all of those are properly inserted ASSERT_EQ (3, vote_cache.size ()); - ASSERT_EQ (2, vote_cache.find (hash1).size ()); + ASSERT_EQ (1, vote_cache.find (hash1).size ()); ASSERT_EQ (1, vote_cache.find (hash2).size ()); ASSERT_EQ (1, vote_cache.find (hash3).size ()); diff --git a/nano/core_test/vote_processor.cpp b/nano/core_test/vote_processor.cpp index 8ed2dd221a..a602bdb5b5 100644 --- a/nano/core_test/vote_processor.cpp +++ b/nano/core_test/vote_processor.cpp @@ -49,6 +49,8 @@ TEST (vote_processor, codes) // Once the election is removed (confirmed / dropped) the vote is again indeterminate node.active.erase (*blocks[0]); + ASSERT_FALSE (node.active.active (blocks[0]->qualified_root ())); + ASSERT_FALSE (node.active.recently_confirmed.exists(blocks[0]->qualified_root ())); ASSERT_EQ (nano::vote_code::indeterminate, node.vote_processor.vote_blocking (vote, channel)); }