Skip to content

Commit

Permalink
Assert election exists and is the same for each iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
gr0vity committed Dec 5, 2024
1 parent f632d92 commit 9a92ec2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions nano/core_test/active_elections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -915,11 +915,8 @@ TEST (active_elections, fork_replacement_tally)
.build ();
node1.process_active (fork);

// Assert election exists on first iteration
if (i == 0)
{
ASSERT_TIMELY (5s, election = node1.active.election (fork->qualified_root ()));
}
// Assert election exists and is the same for each fork
ASSERT_TIMELY (1s, election = node1.active.election (fork->qualified_root ()));
}

// Check overflow of blocks
Expand Down

0 comments on commit 9a92ec2

Please sign in to comment.