Skip to content

Commit

Permalink
Fix the multi-fork tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Mar 28, 2024
1 parent ae9a32e commit 6afd185
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cli/test/sim/multi_fork.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ await checkpointSync.execution.job.stop();

// Unknown block sync
// ========================================================
const headForUnknownBlockSync = await env.nodes[0].beacon.api.beacon.getBlockV2("head");
const headForUnknownBlockSync = await env.nodes[0].beacon.api.beacon.getBlockV2(
// Post deneb we check fork version before broadcast validations, so use a pre-deneb bloc here.
env.clock.getLastSlotOfEpoch(forkConfig.CAPELLA_FORK_EPOCH)
);
ApiError.assert(headForUnknownBlockSync);
const unknownBlockSync = await env.createNodePair({
id: "unknown-block-sync-node",
Expand Down

0 comments on commit 6afd185

Please sign in to comment.