Skip to content

Commit

Permalink
GH-169 Block production schedule changes differently in savanna vs le…
Browse files Browse the repository at this point in the history
…gacy
  • Loading branch information
heifner committed May 27, 2024
1 parent e7afeb9 commit 87fc5e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions unittests/eosio.system_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1980,6 +1980,10 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( producer_onblock_check, T, eosio_system_testers )
BOOST_REQUIRE_EQUAL(chain.success(), chain.vote( "producvoterb"_n, vector<account_name>(producer_names.begin(), producer_names.begin()+21)));
BOOST_REQUIRE_EQUAL(chain.success(), chain.vote( "producvoterc"_n, vector<account_name>(producer_names.begin(), producer_names.end())));

int retries = 50;
while (chain.produce_block()->producer == config::system_account_name && --retries);
BOOST_REQUIRE(retries > 0);

// give a chance for everyone to produce blocks
{
chain.produce_blocks(21 * 12);
Expand Down

0 comments on commit 87fc5e0

Please sign in to comment.