Skip to content

Commit 7269059

Browse files
committed
Fix unit test
1 parent 3a1d656 commit 7269059

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

yarn-project/validator-client/src/validator.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,9 @@ describe('ValidatorClient', () => {
5252
p2pClient.getAttestationsForSlot.mockImplementation(() => Promise.resolve([]));
5353
p2pClient.handleAuthRequestFromPeer.mockResolvedValue(StatusMessage.random());
5454
blockBuilder = mock<IFullNodeBlockBuilder>();
55-
blockBuilder.getConfig.mockReturnValue({
56-
l1GenesisTime: 1n,
57-
slotDuration: 24,
58-
l1ChainId: 1,
59-
rollupVersion: 1,
60-
});
55+
blockBuilder.getConfig.mockReturnValue({ l1GenesisTime: 1n, slotDuration: 24, l1ChainId: 1, rollupVersion: 1 });
6156
epochCache = mock<EpochCache>();
57+
epochCache.filterInCommittee.mockImplementation((_slot, addresses) => Promise.resolve(addresses));
6258
blockSource = mock<L2BlockSource>();
6359
l1ToL2MessageSource = mock<L1ToL2MessageSource>();
6460
txProvider = mock<TxProvider>();

0 commit comments

Comments
 (0)