Skip to content

Commit

Permalink
test(GeneralState): skip fewer specs (bluealloy#1603)
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-rise authored and j75689 committed Aug 1, 2024
1 parent c5544b3 commit 939cef6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bins/revme/src/cmd/statetest/models/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub enum SpecName {
Berlin,
BerlinToLondonAt5,
London,
Merge,
Paris,
Shanghai,
Cancun,
Prague,
Expand All @@ -43,7 +43,7 @@ impl SpecName {
Self::Istanbul => SpecId::ISTANBUL,
Self::Berlin => SpecId::BERLIN,
Self::London | Self::BerlinToLondonAt5 => SpecId::LONDON,
Self::Merge => SpecId::MERGE,
Self::Paris => SpecId::MERGE,
Self::Shanghai => SpecId::SHANGHAI,
Self::Cancun => SpecId::CANCUN,
Self::Prague => SpecId::PRAGUE,
Expand Down
10 changes: 4 additions & 6 deletions bins/revme/src/cmd/statetest/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,10 @@ pub fn execute_test_suite(

// post and execution
for (spec_name, tests) in unit.post {
if matches!(
spec_name,
SpecName::ByzantiumToConstantinopleAt5
| SpecName::Constantinople
| SpecName::Unknown
) {
// Constantinople was immediately extended by Petersburg.
// There isn't any production Constantinople transaction
// so we don't support it and skip right to Petersburg.
if spec_name == SpecName::Constantinople {
continue;
}

Expand Down

0 comments on commit 939cef6

Please sign in to comment.