Skip to content

Commit 45ba444

Browse files
Fix lint
1 parent 5550982 commit 45ba444

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

block/sync_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ func TestDataCommitmentToHeight_HeaderAlreadySynced(t *testing.T) {
948948
ChainID: "syncLoopTest",
949949
DAHeight: 350,
950950
}
951-
m, _, _, ctx, cancel, headerInCh, dataInCh, _ := setupManagerForSyncLoopTest(t, initialState)
951+
m, _, _, _, cancel, headerInCh, dataInCh, _ := setupManagerForSyncLoopTest(t, initialState)
952952
defer cancel()
953953

954954
header, data, _ := types.GenerateRandomBlockCustomWithAppHash(&types.BlockConfig{Height: initialHeight, NTxs: 1}, initialState.ChainID, initialState.AppHash)
@@ -987,13 +987,13 @@ func TestDataCommitmentToHeight_EmptyDataHash(t *testing.T) {
987987
DAHeight: 450,
988988
}
989989
newHeight := initialHeight + 1
990-
m, mockStore, mockExec, ctx, cancel, headerInCh, _, _ := setupManagerForSyncLoopTest(t, initialState)
990+
m, mockStore, mockExec, _, cancel, headerInCh, _, _ := setupManagerForSyncLoopTest(t, initialState)
991991
defer cancel()
992992

993993
header, _, _ := types.GenerateRandomBlockCustomWithAppHash(&types.BlockConfig{Height: newHeight, NTxs: 0}, initialState.ChainID, initialState.AppHash)
994994
header.DataHash = DataHashForEmptyTxs
995995
// Mock GetBlockData for previous height
996-
mockStore.On("GetBlockData", mock.Anything, uint64(newHeight-1)).Return(nil, &types.Data{}, nil).Once()
996+
mockStore.On("GetBlockData", mock.Anything, newHeight-1).Return(nil, &types.Data{}, nil).Once()
997997
// Mock ExecuteTxs, SaveBlockData, UpdateState, SetHeight for empty block
998998
mockExec.On("ExecuteTxs", mock.Anything, [][]byte{}, newHeight, header.Time(), initialState.AppHash).Return([]byte("new_app_hash5"), uint64(100), nil).Once()
999999
mockStore.On("SaveBlockData", mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(nil).Once()
@@ -1029,7 +1029,7 @@ func TestDataCommitmentToHeight_DataAlreadySeen(t *testing.T) {
10291029
DAHeight: 550,
10301030
}
10311031
newHeight := initialHeight + 1
1032-
m, _, _, ctx, cancel, _, dataInCh, _ := setupManagerForSyncLoopTest(t, initialState)
1032+
m, _, _, _, cancel, _, dataInCh, _ := setupManagerForSyncLoopTest(t, initialState)
10331033
defer cancel()
10341034

10351035
_, data, _ := types.GenerateRandomBlockCustomWithAppHash(&types.BlockConfig{Height: newHeight, NTxs: 1}, initialState.ChainID, initialState.AppHash)

0 commit comments

Comments
 (0)