Skip to content

Commit

Permalink
add spec-tests support for light client types
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Mar 27, 2024
1 parent 91401a2 commit 59a1f87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions spec-tests/runners/ssz_static.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ pub fn dispatch(test: &TestCase) -> Result<(), Error> {
gen_altair_and_later! {
test,
ContributionAndProof,
LightClientHeader,
LightClientBootstrap,
LightClientUpdate,
LightClientFinalityUpdate,
LightClientOptimisticUpdate,
SignedContributionAndProof,
SyncAggregate,
SyncAggregatorSelectionData,
Expand Down
5 changes: 1 addition & 4 deletions spec-tests/test_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,7 @@ impl TestMeta {
}

pub fn should_ignore(&self) -> bool {
let ignored_runner = self.runner.should_ignore();
let ignored_handler =
matches!(self.runner, Runner::SszStatic) && self.handler.0.contains("LightClient");
ignored_runner | ignored_handler
self.runner.should_ignore()
}

pub fn should_skip(&self) -> bool {
Expand Down

0 comments on commit 59a1f87

Please sign in to comment.