Skip to content

Commit

Permalink
Replace election->force_confirm () with node.process_confirmed () in …
Browse files Browse the repository at this point in the history
…election_scheduler.no_vacancy
  • Loading branch information
theohax committed Feb 10, 2022
1 parent 22ecf45 commit 8c5ba4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nano/core_test/election_scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ TEST (election_scheduler, no_vacancy)
ASSERT_TRUE (node.active.election (block2->qualified_root ()) == nullptr);

// Election completed, next in queue should begin
election->force_confirm ();
// election->force_confirm ();
node.process_confirmed (nano::election_status{ block1 });
ASSERT_TIMELY (5s, node.active.election (block2->qualified_root ()) != nullptr);
ASSERT_TRUE (node.scheduler.empty ());
}
Expand Down

0 comments on commit 8c5ba4d

Please sign in to comment.