@@ -252,13 +252,13 @@ func TestGetSequentialBlockDataToCommit(t *testing.T) {
252252 mockStagingStorage .EXPECT ().GetStagingData (storage.QueryFilter {
253253 ChainId : chainID ,
254254 BlockNumbers : []* big.Int {big .NewInt (101 ), big .NewInt (102 ), big .NewInt (103 )},
255- }).Return (& blockData , nil )
255+ }).Return (blockData , nil )
256256
257257 result , err := committer .getSequentialBlockDataToCommit ()
258258
259259 assert .NoError (t , err )
260260 assert .NotNil (t , result )
261- assert .Equal (t , 3 , len (* result ))
261+ assert .Equal (t , 3 , len (result ))
262262}
263263
264264func TestGetSequentialBlockDataToCommitWithDuplicateBlocks (t * testing.T ) {
@@ -288,16 +288,16 @@ func TestGetSequentialBlockDataToCommitWithDuplicateBlocks(t *testing.T) {
288288 mockStagingStorage .EXPECT ().GetStagingData (storage.QueryFilter {
289289 ChainId : chainID ,
290290 BlockNumbers : []* big.Int {big .NewInt (101 ), big .NewInt (102 ), big .NewInt (103 )},
291- }).Return (& blockData , nil )
291+ }).Return (blockData , nil )
292292
293293 result , err := committer .getSequentialBlockDataToCommit ()
294294
295295 assert .NoError (t , err )
296296 assert .NotNil (t , result )
297- assert .Equal (t , 3 , len (* result ))
298- assert .Equal (t , big .NewInt (101 ), ( * result ) [0 ].Block .Number )
299- assert .Equal (t , big .NewInt (102 ), ( * result ) [1 ].Block .Number )
300- assert .Equal (t , big .NewInt (103 ), ( * result ) [2 ].Block .Number )
297+ assert .Equal (t , 3 , len (result ))
298+ assert .Equal (t , big .NewInt (101 ), result [0 ].Block .Number )
299+ assert .Equal (t , big .NewInt (102 ), result [1 ].Block .Number )
300+ assert .Equal (t , big .NewInt (103 ), result [2 ].Block .Number )
301301}
302302
303303func TestCommit (t * testing.T ) {
@@ -317,10 +317,10 @@ func TestCommit(t *testing.T) {
317317 {Block : common.Block {Number : big .NewInt (102 )}},
318318 }
319319
320- mockMainStorage .EXPECT ().InsertBlockData (& blockData ).Return (nil )
321- mockStagingStorage .EXPECT ().DeleteStagingData (& blockData ).Return (nil )
320+ mockMainStorage .EXPECT ().InsertBlockData (blockData ).Return (nil )
321+ mockStagingStorage .EXPECT ().DeleteStagingData (blockData ).Return (nil )
322322
323- err := committer .commit (& blockData )
323+ err := committer .commit (blockData )
324324
325325 assert .NoError (t , err )
326326}
@@ -381,9 +381,9 @@ func TestStartCommitter(t *testing.T) {
381381 {Block : common.Block {Number : big .NewInt (101 )}},
382382 {Block : common.Block {Number : big .NewInt (102 )}},
383383 }
384- mockStagingStorage .On ("GetStagingData" , mock .Anything ).Return (& blockData , nil )
385- mockMainStorage .On ("InsertBlockData" , & blockData ).Return (nil )
386- mockStagingStorage .On ("DeleteStagingData" , & blockData ).Return (nil )
384+ mockStagingStorage .On ("GetStagingData" , mock .Anything ).Return (blockData , nil )
385+ mockMainStorage .On ("InsertBlockData" , blockData ).Return (nil )
386+ mockStagingStorage .On ("DeleteStagingData" , blockData ).Return (nil )
387387
388388 // Start the committer in a goroutine
389389 go committer .Start (context .Background ())
@@ -414,9 +414,9 @@ func TestCommitterRespectsSIGTERM(t *testing.T) {
414414 {Block : common.Block {Number : big .NewInt (101 )}},
415415 {Block : common.Block {Number : big .NewInt (102 )}},
416416 }
417- mockStagingStorage .On ("GetStagingData" , mock .Anything ).Return (& blockData , nil )
418- mockMainStorage .On ("InsertBlockData" , & blockData ).Return (nil )
419- mockStagingStorage .On ("DeleteStagingData" , & blockData ).Return (nil )
417+ mockStagingStorage .On ("GetStagingData" , mock .Anything ).Return (blockData , nil )
418+ mockMainStorage .On ("InsertBlockData" , blockData ).Return (nil )
419+ mockStagingStorage .On ("DeleteStagingData" , blockData ).Return (nil )
420420
421421 // Create a context that we can cancel
422422 ctx , cancel := context .WithCancel (context .Background ())
@@ -480,7 +480,7 @@ func TestHandleMissingStagingData(t *testing.T) {
480480 mockStagingStorage .EXPECT ().GetStagingData (storage.QueryFilter {
481481 ChainId : chainID ,
482482 BlockNumbers : []* big.Int {big .NewInt (0 ), big .NewInt (1 ), big .NewInt (2 ), big .NewInt (3 ), big .NewInt (4 )},
483- }).Return (& blockData , nil )
483+ }).Return (blockData , nil )
484484
485485 result , err := committer .getSequentialBlockDataToCommit ()
486486
@@ -524,7 +524,7 @@ func TestHandleMissingStagingDataIsPolledWithCorrectBatchSize(t *testing.T) {
524524 mockStagingStorage .EXPECT ().GetStagingData (storage.QueryFilter {
525525 ChainId : chainID ,
526526 BlockNumbers : []* big.Int {big .NewInt (0 ), big .NewInt (1 ), big .NewInt (2 ), big .NewInt (3 ), big .NewInt (4 )},
527- }).Return (& blockData , nil )
527+ }).Return (blockData , nil )
528528
529529 result , err := committer .getSequentialBlockDataToCommit ()
530530
0 commit comments