From 7c4df916435c671d34e0dcf6db183620c8298103 Mon Sep 17 00:00:00 2001 From: g11tech Date: Thu, 28 Sep 2023 18:28:41 +0530 Subject: [PATCH] fix: fix the validation of the forkchoice spec test (#6004) --- packages/beacon-node/test/spec/presets/fork_choice.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/beacon-node/test/spec/presets/fork_choice.test.ts b/packages/beacon-node/test/spec/presets/fork_choice.test.ts index 7b2dca6e4ede..7212745c3ff1 100644 --- a/packages/beacon-node/test/spec/presets/fork_choice.test.ts +++ b/packages/beacon-node/test/spec/presets/fork_choice.test.ts @@ -180,7 +180,7 @@ const forkChoiceTest = }); if (!isValid) throw Error("Expect error since this is a negative test"); } catch (e) { - if (isValid) throw e; + if (isValid || (e as Error).message === "Expect error since this is a negative test") throw e; } }