mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Update to EF tests v0.12.2 (#1392)
Update the EF test vectors to v0.12.2 so that they include the new finality tests. Also, correct a typo that caused the epoch processing final update tests not to run on the minimal spec.
This commit is contained in:
@@ -10,7 +10,8 @@ fn config_test<E: EthSpec + TypeName>() {
|
||||
.join("eth2.0-spec-tests")
|
||||
.join("tests")
|
||||
.join(E::name())
|
||||
.join("config.yaml");
|
||||
.join("config")
|
||||
.join("phase0.yaml");
|
||||
let yaml_config = YamlConfig::from_file(&config_path).expect("config file loads OK");
|
||||
let spec = E::default_spec();
|
||||
let yaml_from_spec = YamlConfig::from_spec::<E>(&spec);
|
||||
@@ -233,8 +234,14 @@ fn epoch_processing_slashings() {
|
||||
|
||||
#[test]
|
||||
fn epoch_processing_final_updates() {
|
||||
EpochProcessingHandler::<MinimalEthSpec, FinalUpdates>::run();
|
||||
EpochProcessingHandler::<MainnetEthSpec, FinalUpdates>::run();
|
||||
EpochProcessingHandler::<MainnetEthSpec, FinalUpdates>::run();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn finality() {
|
||||
FinalityHandler::<MinimalEthSpec>::run();
|
||||
FinalityHandler::<MainnetEthSpec>::run();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user