Skip to content

Commit

Permalink
Fix for unit test active_transactions.vote_replays #3360 (#3361)
Browse files Browse the repository at this point in the history
We cannot expect the vote to survive long enough for the test to see it

Fixes issue:
#3360
  • Loading branch information
dsiganos committed Jun 30, 2021
1 parent 062f3fc commit 9ea9635
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion nano/core_test/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,6 @@ TEST (active_transactions, vote_replays)
// Open new account
auto vote_open1 (std::make_shared<nano::vote> (nano::dev_genesis_key.pub, nano::dev_genesis_key.prv, std::numeric_limits<uint64_t>::max (), open1));
ASSERT_EQ (nano::vote_code::vote, node.active.vote (vote_open1));
ASSERT_EQ (1, node.active.size ());
ASSERT_EQ (nano::vote_code::replay, node.active.vote (vote_open1));
ASSERT_TIMELY (3s, node.active.empty ());
ASSERT_EQ (nano::vote_code::replay, node.active.vote (vote_open1));
Expand Down

0 comments on commit 9ea9635

Please sign in to comment.