diff --git a/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/Eth2ReferenceTestCase.java b/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/Eth2ReferenceTestCase.java index d64220f8158..224dc435eff 100644 --- a/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/Eth2ReferenceTestCase.java +++ b/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/Eth2ReferenceTestCase.java @@ -104,6 +104,12 @@ private TestExecutor getExecutorFor(final TestDefinition testDefinition) { testExecutor = COMMON_TEST_TYPES.get(testDefinition.getTestType()); } + // TODO: https://github.com/Consensys/teku/issues/7539 + if (testDefinition.getFork().equals(TestFork.DENEB) + && testExecutor instanceof ForkChoiceTestExecutor) { + testExecutor = TestExecutor.IGNORE_TESTS; + } + if (testExecutor == null) { return Assertions.fail("Unsupported test type " + testDefinition.getTestType()); } diff --git a/eth-tests/src/main/java/tech/pegasys/teku/ethtests/finder/ReferenceTestFinder.java b/eth-tests/src/main/java/tech/pegasys/teku/ethtests/finder/ReferenceTestFinder.java index 7415be0fd43..00a3ef8c49b 100644 --- a/eth-tests/src/main/java/tech/pegasys/teku/ethtests/finder/ReferenceTestFinder.java +++ b/eth-tests/src/main/java/tech/pegasys/teku/ethtests/finder/ReferenceTestFinder.java @@ -19,7 +19,6 @@ import java.nio.file.Path; import java.util.List; import java.util.function.Function; -import java.util.function.Predicate; import java.util.stream.Stream; import tech.pegasys.teku.ethtests.TestFork; import tech.pegasys.teku.infrastructure.async.ExceptionThrowingFunction; @@ -32,10 +31,6 @@ public class ReferenceTestFinder { private static final List SUPPORTED_FORKS = List.of( TestFork.PHASE0, TestFork.ALTAIR, TestFork.BELLATRIX, TestFork.CAPELLA, TestFork.DENEB); - // should only be used to temporarily disable specific reference tests, - // otherwise should return false - private static final Predicate IGNORE_TESTS = - test -> test.getFork().equals(TestFork.DENEB) && test.getTestType().startsWith("fork_choice"); @MustBeClosed public static Stream findReferenceTests() throws IOException { @@ -63,8 +58,7 @@ private static Stream findTestTypes(final Path specDirectory) th new SszTestFinder("ssz_static"), new ShufflingTestFinder(), new PyspecTestFinder()) - .flatMap(unchecked(finder -> finder.findTests(fork, spec, testsPath))) - .filter(test -> !IGNORE_TESTS.test(test)); + .flatMap(unchecked(finder -> finder.findTests(fork, spec, testsPath))); }); }