From 8df57df706e60bc4db1fd7d43b019d017d9053db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:16:41 +0100 Subject: [PATCH] Fix test --- nano/core_test/ledger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano/core_test/ledger.cpp b/nano/core_test/ledger.cpp index 12567e02be..e75a6d9c96 100644 --- a/nano/core_test/ledger.cpp +++ b/nano/core_test/ledger.cpp @@ -933,7 +933,7 @@ TEST (votes, add_one) auto vote1 = nano::test::make_vote (nano::dev::genesis_key, { send1 }, nano::vote::timestamp_min * 1, 0); ASSERT_EQ (nano::vote_code::vote, node1.active.vote (vote1).at (send1->hash ())); auto vote2 = nano::test::make_vote (nano::dev::genesis_key, { send1 }, nano::vote::timestamp_min * 2, 0); - ASSERT_EQ (nano::vote_code::vote, node1.active.vote (vote2).at (send1->hash ())); + ASSERT_EQ (nano::vote_code::ignored, node1.active.vote (vote2).at (send1->hash ())); // Ignored due to vote cooldown ASSERT_EQ (2, election1->votes ().size ()); auto votes1 (election1->votes ()); auto existing1 (votes1.find (nano::dev::genesis_key.pub));