Skip to content

Commit

Permalink
Add check validating that the proposer policy is pending after produc…
Browse files Browse the repository at this point in the history
…ing 13 blocks.
  • Loading branch information
greg7mdp committed Aug 20, 2024
1 parent 6b72ce0 commit b05c72e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unittests/savanna_proposer_policy_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,11 @@ BOOST_FIXTURE_TEST_CASE(pending_proposer_policy_becomes_active_without_finality,

A.create_accounts(producers);
A.tester::set_producers(producers); // push the action to update the producer schedule
A.produce_blocks(12); // produce 12 blocks which guarantees that the proposer policy is pending
A.produce_blocks(13); // produce 13 blocks which guarantees that the proposer policy is pending

BOOST_REQUIRE_EQUAL(A.control->active_producers().version, orig_version);
BOOST_REQUIRE(!!A.control->pending_producers());
BOOST_REQUIRE_GT(A.control->pending_producers()->version, orig_version);
auto orig_lib_num = A.lib_number;

// split network { A, B } and { C, D }
Expand Down

0 comments on commit b05c72e

Please sign in to comment.