From fd6f7020a048e624b6567d46d50d3011afdd55e7 Mon Sep 17 00:00:00 2001 From: g11tech <76567250+g11tech@users.noreply.github.com> Date: Tue, 10 May 2022 20:39:38 +0530 Subject: [PATCH] Activate ex-ante fork-choice spec tests (#4003) --- packages/lodestar/test/spec/allForks/forkChoice.ts | 2 +- packages/lodestar/test/spec/bellatrix/fork_choice.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/lodestar/test/spec/allForks/forkChoice.ts b/packages/lodestar/test/spec/allForks/forkChoice.ts index b14b0855b6f0..21c195ecbb8d 100644 --- a/packages/lodestar/test/spec/allForks/forkChoice.ts +++ b/packages/lodestar/test/spec/allForks/forkChoice.ts @@ -49,7 +49,7 @@ const POW_BLOCK_FILE_NAME = "^(pow_block)_([0-9a-zA-Z]+)$"; const ATTESTATION_FILE_NAME = "^(attestation)_([0-9a-zA-Z])+$"; const logger = testLogger("spec-test"); -export function forkChoiceTest(fork: ForkName, testFolders: string[] = ["get_head", "on_block"]): void { +export function forkChoiceTest(fork: ForkName, testFolders: string[] = ["get_head", "on_block", "ex_ante"]): void { for (const testFolder of testFolders) { describeDirectorySpecTest( `${ACTIVE_PRESET}/${fork}/fork_choice/${testFolder}`, diff --git a/packages/lodestar/test/spec/bellatrix/fork_choice.test.ts b/packages/lodestar/test/spec/bellatrix/fork_choice.test.ts index 1ea790fd1b2b..fede5636e206 100644 --- a/packages/lodestar/test/spec/bellatrix/fork_choice.test.ts +++ b/packages/lodestar/test/spec/bellatrix/fork_choice.test.ts @@ -1,4 +1,4 @@ import {ForkName} from "@chainsafe/lodestar-params"; import {forkChoiceTest} from "../allForks/forkChoice"; -forkChoiceTest(ForkName.bellatrix, ["get_head", "on_block", "on_merge_block"]); +forkChoiceTest(ForkName.bellatrix, ["get_head", "on_block", "ex_ante", "on_merge_block"]);