Fix tree-states tests (#5277)

* Fix beta compiler lints

* Fix fork choice tests

* Fix op_pool tests

---------

Co-authored-by: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
Michael Sproul
2024-02-23 09:30:31 +11:00
committed by GitHub
parent 26117a558f
commit f9c9c40a67
4 changed files with 53 additions and 25 deletions

View File

@@ -47,15 +47,7 @@ impl fmt::Debug for ForkChoiceTest {
impl ForkChoiceTest {
/// Creates a new tester.
pub fn new() -> Self {
// Run fork choice tests against the latest fork.
let spec = ForkName::latest().make_genesis_spec(ChainSpec::default());
let harness = BeaconChainHarness::builder(MainnetEthSpec)
.spec(spec)
.deterministic_keypairs(VALIDATOR_COUNT)
.fresh_ephemeral_store()
.build();
Self { harness }
Self::new_with_chain_config(ChainConfig::default())
}
/// Creates a new tester with a custom chain config.
@@ -67,6 +59,7 @@ impl ForkChoiceTest {
.chain_config(chain_config)
.deterministic_keypairs(VALIDATOR_COUNT)
.fresh_ephemeral_store()
.mock_execution_layer()
.build();
Self { harness }