Skip to content

Commit 04f8ead

Browse files
committed
fix tests
1 parent b08e385 commit 04f8ead

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

beacon-chain/rpc/eth/beacon/blocks_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,12 +2121,14 @@ func TestServer_ListBlockAttestations(t *testing.T) {
21212121
Block: wsb,
21222122
Root: headBlock.BlockRoot,
21232123
FinalizedCheckPoint: &ethpbalpha.Checkpoint{Root: blkContainers[64].BlockRoot},
2124+
FinalizedRoots: map[[32]byte]bool{},
21242125
}
21252126
bs := &Server{
21262127
BeaconDB: beaconDB,
21272128
ChainInfoFetcher: mockChainService,
21282129
HeadFetcher: mockChainService,
21292130
OptimisticModeFetcher: mockChainService,
2131+
FinalizationFetcher: mockChainService,
21302132
}
21312133

21322134
genBlk, blkContainers := fillDBTestBlocks(ctx, t, beaconDB)
@@ -2227,12 +2229,14 @@ func TestServer_ListBlockAttestations(t *testing.T) {
22272229
Block: blk,
22282230
Root: headBlock.BlockRoot,
22292231
FinalizedCheckPoint: &ethpbalpha.Checkpoint{Root: blkContainers[64].BlockRoot},
2232+
FinalizedRoots: map[[32]byte]bool{},
22302233
}
22312234
bs := &Server{
22322235
BeaconDB: beaconDB,
22332236
ChainInfoFetcher: mockChainService,
22342237
HeadFetcher: mockChainService,
22352238
OptimisticModeFetcher: mockChainService,
2239+
FinalizationFetcher: mockChainService,
22362240
}
22372241

22382242
genBlk, blkContainers := fillDBTestBlocksAltair(ctx, t, beaconDB)
@@ -2334,12 +2338,14 @@ func TestServer_ListBlockAttestations(t *testing.T) {
23342338
Block: blk,
23352339
Root: headBlock.BlockRoot,
23362340
FinalizedCheckPoint: &ethpbalpha.Checkpoint{Root: blkContainers[64].BlockRoot},
2341+
FinalizedRoots: map[[32]byte]bool{},
23372342
}
23382343
bs := &Server{
23392344
BeaconDB: beaconDB,
23402345
ChainInfoFetcher: mockChainService,
23412346
HeadFetcher: mockChainService,
23422347
OptimisticModeFetcher: mockChainService,
2348+
FinalizationFetcher: mockChainService,
23432349
}
23442350

23452351
genBlk, blkContainers := fillDBTestBlocksBellatrix(ctx, t, beaconDB)
@@ -2442,12 +2448,14 @@ func TestServer_ListBlockAttestations(t *testing.T) {
24422448
Root: headBlock.BlockRoot,
24432449
FinalizedCheckPoint: &ethpbalpha.Checkpoint{Root: blkContainers[64].BlockRoot},
24442450
Optimistic: true,
2451+
FinalizedRoots: map[[32]byte]bool{},
24452452
}
24462453
bs := &Server{
24472454
BeaconDB: beaconDB,
24482455
ChainInfoFetcher: mockChainService,
24492456
HeadFetcher: mockChainService,
24502457
OptimisticModeFetcher: mockChainService,
2458+
FinalizationFetcher: mockChainService,
24512459
}
24522460
resp, err := bs.ListBlockAttestations(ctx, &ethpbv1.BlockRequest{
24532461
BlockId: []byte("head"),

0 commit comments

Comments
 (0)