block_tests.cpp: Implement miss_many_blocks test #313
This commit is contained in:
parent
e4a45de195
commit
1451f67636
1 changed files with 20 additions and 0 deletions
|
|
@ -1225,4 +1225,24 @@ BOOST_AUTO_TEST_CASE( genesis_reserve_ids )
|
|||
}
|
||||
}
|
||||
|
||||
BOOST_FIXTURE_TEST_CASE( miss_many_blocks, database_fixture )
|
||||
{
|
||||
try
|
||||
{
|
||||
generate_block();
|
||||
generate_block();
|
||||
generate_block();
|
||||
// miss 10 maintenance intervals
|
||||
generate_blocks( db.get_dynamic_global_properties().next_maintenance_time + db.get_global_properties().parameters.maintenance_interval * 10, true );
|
||||
generate_block();
|
||||
generate_block();
|
||||
generate_block();
|
||||
}
|
||||
catch (fc::exception& e)
|
||||
{
|
||||
edump((e.to_detail_string()));
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
|
|
|||
Loading…
Reference in a new issue