Skip to content

Commit

Permalink
fix: fix the validation of the forkchoice spec test (#6004)
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech authored Sep 28, 2023
1 parent 4557276 commit 7c4df91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/test/spec/presets/fork_choice.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 7c4df91

Please sign in to comment.