test: fix emits_bodies_in_order test (#534)

* feat(test-utils): make body tx count configurable

* test: fix `emits_bodies_in_order` test
This commit is contained in:
Bjerg
2022-12-20 01:29:04 +01:00
committed by GitHub
parent 5c1f97cbf7
commit 82cd84eca7
6 changed files with 24 additions and 14 deletions

View File

@ -131,7 +131,7 @@ impl<'a, DB: Database> DbTool<'a, DB> {
/// Seeds the database with some random data, only used for testing
fn seed(&mut self, len: u64) -> Result<()> {
info!("Generating random block range from 0 to {len}");
let chain = random_block_range(0..len, Default::default());
let chain = random_block_range(0..len, Default::default(), 0..64);
self.db.update(|tx| {
chain.iter().try_for_each(|block| {