Debug tests

This commit is contained in:
Emilia Hane
2023-01-22 00:51:58 +01:00
parent 995b2715f2
commit 7220f35ff6
7 changed files with 113 additions and 47 deletions

View File

@@ -38,9 +38,11 @@ impl TestRig {
fn test_setup(log_level: Option<Level>) -> (BlockLookups<T>, SyncNetworkContext<T>, Self) {
let builder = NullLoggerBuilder;
let log = builder.build().expect("should build logger");
let store = store::HotColdDB::open_ephemeral(store::StoreConfig::default(), E::default_spec(), log).unwrap();
let store =
store::HotColdDB::open_ephemeral(store::StoreConfig::default(), E::default_spec(), log)
.unwrap();
// Initialise a new beacon chain from the finalized checkpoint
// Initialise a new beacon chain
let chain = BeaconChainBuilder::new(E)
.custom_spec(test_spec::<E>())
.store(Arc::new(store))