Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Mar 19, 2024
1 parent e55fa43 commit 39b1113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/beacon-node/test/mocks/mockedBeaconChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ vi.mock("../../src/chain/chain.js", async (importActual) => {
produceBlindedBlock: vi.fn(),
getCanonicalBlockAtSlot: vi.fn(),
recomputeForkChoiceHead: vi.fn(),
predictProposerHead: vi.fn(),
getHeadStateAtCurrentEpoch: vi.fn(),
getHeadState: vi.fn(),
updateBuilderStatus: vi.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ describe("PrepareNextSlot scheduler", () => {
chainStub.emitter.on(routes.events.EventType.payloadAttributes, spy);
getForkStub.mockReturnValue(ForkName.bellatrix);
chainStub.recomputeForkChoiceHead.mockReturnValue({...zeroProtoBlock, slot: SLOTS_PER_EPOCH - 3} as ProtoBlock);
chainStub.predictProposerHead.mockReturnValue({...zeroProtoBlock, slot: SLOTS_PER_EPOCH - 3} as ProtoBlock);
forkChoiceStub.getJustifiedBlock.mockReturnValue({} as ProtoBlock);
forkChoiceStub.getFinalizedBlock.mockReturnValue({} as ProtoBlock);
updateBuilderStatus.mockReturnValue(void 0);
Expand Down

0 comments on commit 39b1113

Please sign in to comment.