From 59a1f872d22e93b86ccb728f21fe42726501b27f Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Wed, 27 Mar 2024 07:56:30 -0600 Subject: [PATCH] add spec-tests support for light client types --- spec-tests/runners/ssz_static.rs | 4 ++++ spec-tests/test_meta.rs | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/spec-tests/runners/ssz_static.rs b/spec-tests/runners/ssz_static.rs index c8b39d589..3d9f73004 100644 --- a/spec-tests/runners/ssz_static.rs +++ b/spec-tests/runners/ssz_static.rs @@ -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, diff --git a/spec-tests/test_meta.rs b/spec-tests/test_meta.rs index 49fcb6a1a..c8017a10b 100644 --- a/spec-tests/test_meta.rs +++ b/spec-tests/test_meta.rs @@ -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 {