mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Ef test version update (#4142)
* Revert "revert change to ef_tests" This reverts commit1093ba1a27. * Revert "Revert "Use consensus-spec-tests `v1.3.0-rc.3` (#4021)"" This reverts commit20be7024e1. * update tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use crate::cases::{self, Case, Cases, EpochTransition, LoadCase, Operation};
|
||||
use crate::type_name;
|
||||
use crate::type_name::TypeName;
|
||||
use crate::{type_name, Error};
|
||||
use derivative::Derivative;
|
||||
use std::fs::{self, DirEntry};
|
||||
use std::marker::PhantomData;
|
||||
@@ -57,17 +57,11 @@ pub trait Handler {
|
||||
.filter_map(as_directory)
|
||||
.flat_map(|suite| fs::read_dir(suite.path()).expect("suite dir exists"))
|
||||
.filter_map(as_directory)
|
||||
.filter_map(|test_case_dir| {
|
||||
.map(|test_case_dir| {
|
||||
let path = test_case_dir.path();
|
||||
|
||||
let case_result = Self::Case::load_from_dir(&path, fork_name);
|
||||
|
||||
if let Err(Error::SkippedKnownFailure) = case_result.as_ref() {
|
||||
return None;
|
||||
}
|
||||
|
||||
let case = case_result.expect("test should load");
|
||||
Some((path, case))
|
||||
let case = Self::Case::load_from_dir(&path, fork_name).expect("test should load");
|
||||
(path, case)
|
||||
})
|
||||
.collect();
|
||||
|
||||
@@ -664,6 +658,11 @@ impl<E: EthSpec + TypeName> Handler for MerkleProofValidityHandler<E> {
|
||||
|
||||
fn is_enabled_for_fork(&self, fork_name: ForkName) -> bool {
|
||||
fork_name != ForkName::Base
|
||||
// Test is skipped due to some changes in the Capella light client
|
||||
// spec.
|
||||
//
|
||||
// https://github.com/sigp/lighthouse/issues/4022
|
||||
&& fork_name != ForkName::Capella && fork_name != ForkName::Deneb
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user