Skip to content
Snippets Groups Projects
Commit 0385ea86 authored by Wei Tang's avatar Wei Tang
Browse files

yamltests: pass registry_updates

parent dcd5c058
Branches
No related merge requests found
......@@ -34,18 +34,18 @@ impl<C: Config> Test for CrosslinksTest<C> {
}
}
// #[derive(Serialize, Deserialize, Debug)]
// #[serde(deny_unknown_fields)]
// pub struct RegistryUpdatesTest {
// pub description: String,
// pub pre: BeaconState,
// pub post: Option<BeaconState>,
// }
#[derive(Serialize, Deserialize, Debug)]
#[serde(deny_unknown_fields)]
pub struct RegistryUpdatesTest<C: Config> {
pub description: String,
pub pre: BeaconState<C>,
pub post: Option<BeaconState<C>>,
}
// impl Test for RegistryUpdatesTest {
// fn run<C: Config>(&self, config: &C) {
// run_test_with(&self.description, &self.pre, self.post.as_ref(), config, |executive| {
// executive.process_registry_updates()
// });
// }
// }
impl<C: Config> Test for RegistryUpdatesTest<C> {
fn run(&self) {
run_test_with(&self.description, &self.pre, self.post.as_ref(), |state| {
state.process_registry_updates()
});
}
}
......@@ -47,7 +47,7 @@ fn run_all<C: Config + serde::Serialize + DeserializeOwned>(runner: &str, file:
"voluntary_exit" => run::<VoluntaryExitTest<C>>(file),
"justification_and_finalization" => run::<JustificationAndFinalizationTest<C>>(file),
"crosslinks" => run::<CrosslinksTest<C>>(file),
// "registry_updates" => run::<RegistryUpdatesTest, _>(file, &config),
"registry_updates" => run::<RegistryUpdatesTest<C>>(file),
// "blocks" => run::<BlocksTest, _>(file, &config),
// "slots" => run::<SlotsTest, _>(file, &config),
_ => panic!("Unsupported runner"),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment