Skip to content

Commit

Permalink
Fix fork_publish_inactive test
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Nov 13, 2023
1 parent a6e9956 commit d19f013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nano/core_test/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,8 @@ TEST (node, fork_publish_inactive)

ASSERT_EQ (nano::process_result::fork, node.process_local (send2).value ().code);

auto blocks = election->blocks ();
ASSERT_TIMELY_EQ (5s, blocks.size (), 2);
decltype (election->blocks ()) blocks;
ASSERT_TIMELY_EQ (5s, (blocks = election->blocks ()).size (), 2);
ASSERT_NE (blocks.end (), blocks.find (send1->hash ()));
ASSERT_NE (blocks.end (), blocks.find (send2->hash ()));
ASSERT_EQ (election->winner ()->hash (), send1->hash ());
Expand Down

0 comments on commit d19f013

Please sign in to comment.