Skip to content

Commit

Permalink
more fixes in init tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Jan 25, 2024
1 parent 278c083 commit e3d9b37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/reth/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,11 @@ mod tests {
..Default::default()
});

let factory = create_test_provider_factory_with_chain_spec(chain_spec);
let factory = create_test_provider_factory_with_chain_spec(chain_spec.clone());
init_genesis(factory.clone(), chain_spec).unwrap();

let tx = factory.provider().expect("failed to init provider").tx_ref();
let provider = factory.provider().expect("failed to init provider");
let tx = provider.tx_ref();

assert_eq!(
collect_table_entries::<Arc<DatabaseEnv>, tables::AccountHistory>(&tx)
Expand Down

0 comments on commit e3d9b37

Please sign in to comment.