From f52948ddf2c237500fde80bedec48fd7e1b111fa Mon Sep 17 00:00:00 2001 From: Enrico Del Fante Date: Fri, 22 Nov 2024 14:23:56 +0100 Subject: [PATCH] improve test --- .../tech/pegasys/teku/reference/ManualReferenceTestRunner.java | 2 +- .../util/BlockBlobSidecarsTrackersPoolImplTest.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/ManualReferenceTestRunner.java b/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/ManualReferenceTestRunner.java index fd87b4c497a..abdbc308224 100644 --- a/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/ManualReferenceTestRunner.java +++ b/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/ManualReferenceTestRunner.java @@ -63,7 +63,7 @@ public class ManualReferenceTestRunner extends Eth2ReferenceTestCase { * *

May be overridden by the ENV_DISPLAY_NAME environment variable. */ - private static final String DISPLAY_NAME = "invalid_incorrect_proof"; + private static final String DISPLAY_NAME = ""; @ParameterizedTest(name = "{0}") @MethodSource("loadReferenceTests") diff --git a/ethereum/statetransition/src/test/java/tech/pegasys/teku/statetransition/util/BlockBlobSidecarsTrackersPoolImplTest.java b/ethereum/statetransition/src/test/java/tech/pegasys/teku/statetransition/util/BlockBlobSidecarsTrackersPoolImplTest.java index 317cb65c07a..ee8b0a6906b 100644 --- a/ethereum/statetransition/src/test/java/tech/pegasys/teku/statetransition/util/BlockBlobSidecarsTrackersPoolImplTest.java +++ b/ethereum/statetransition/src/test/java/tech/pegasys/teku/statetransition/util/BlockBlobSidecarsTrackersPoolImplTest.java @@ -164,6 +164,8 @@ public void onNewBlobSidecar_shouldThrowIfNotMarkedKzgAndInclusionProofAsValidat .signedBeaconBlockHeader(dataStructureUtil.randomSignedBeaconBlockHeader(currentSlot)) .build(); + assertThat(blobSidecar.isKzgAndInclusionProofValidated()).isFalse(); + assertThrows( IllegalArgumentException.class, () -> blockBlobSidecarsTrackersPool.onNewBlobSidecar(blobSidecar, RemoteOrigin.GOSSIP));