Skip to content

Commit e551c17

Browse files
committed
Fix test
1 parent 69f5f78 commit e551c17

File tree

5 files changed

+500
-143
lines changed

5 files changed

+500
-143
lines changed

internal/orchestrator/committer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ func TestHandleGap(t *testing.T) {
426426
mockRPC.EXPECT().GetBlocksPerRequest().Return(rpc.BlocksPerRequestConfig{
427427
Blocks: 5,
428428
})
429-
mockRPC.EXPECT().GetChainID().Return(big.NewInt(1))
429+
// GetChainID is not called in this flow since there are no block failures
430430
mockRPC.EXPECT().GetFullBlocks(context.Background(), []*big.Int{big.NewInt(100), big.NewInt(101), big.NewInt(102), big.NewInt(103), big.NewInt(104)}).Return([]rpc.GetFullBlockResult{
431431
{BlockNumber: big.NewInt(100), Data: common.BlockData{Block: common.Block{Number: big.NewInt(100)}}},
432432
{BlockNumber: big.NewInt(101), Data: common.BlockData{Block: common.Block{Number: big.NewInt(101)}}},

test/mocks/MockIMainStorage.go

Lines changed: 166 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)