From 9472a3a948f0842c5fe343c9e9099a5f6961bbc6 Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Mon, 23 Oct 2023 10:46:13 +0100 Subject: [PATCH] initialize spec before --- .../reference/phase0/forkchoice/ForkChoiceTestExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/phase0/forkchoice/ForkChoiceTestExecutor.java b/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/phase0/forkchoice/ForkChoiceTestExecutor.java index 37c7698ca27..1adc17c8440 100644 --- a/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/phase0/forkchoice/ForkChoiceTestExecutor.java +++ b/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/phase0/forkchoice/ForkChoiceTestExecutor.java @@ -110,9 +110,9 @@ public void runTest(final TestDefinition testDefinition) throws Throwable { // Note: The fork choice spec says there may be settings in a meta.yaml file but currently no // tests actually have one, so we currently don't bother trying to load it. + final Spec spec = testDefinition.getSpec(false); final BeaconState anchorState = TestDataUtils.loadStateFromSsz(testDefinition, "anchor_state" + SSZ_SNAPPY_EXTENSION); - final Spec spec = testDefinition.getSpec(false); final SignedBeaconBlock anchorBlock = loadAnchorBlock(testDefinition); final StorageSystem storageSystem =