Skip to content

Commit

Permalink
add current blocknumber
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth More authored and Siddharth More committed Apr 18, 2024
1 parent ec0ebc7 commit cbde875
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions disperser/batcher/batcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ func TestBlobFailures(t *testing.T) {

txn := types.NewTransaction(0, gethcommon.Address{}, big.NewInt(0), 0, big.NewInt(0), nil)
components.transactor.On("BuildConfirmBatchTxn").Return(txn, nil)
components.transactor.On("GetCurrentBlockNumber").Return(uint32(10), nil)
components.txnManager.On("ProcessTransaction").Return(nil)

// Test with receipt response with error
Expand Down Expand Up @@ -407,6 +408,7 @@ func TestBlobRetry(t *testing.T) {

txn := types.NewTransaction(0, gethcommon.Address{}, big.NewInt(0), 0, big.NewInt(0), nil)
components.transactor.On("BuildConfirmBatchTxn").Return(txn, nil)
components.transactor.On("GetCurrentBlockNumber").Return(uint32(10), nil)
components.txnManager.On("ProcessTransaction").Return(nil)

err = batcher.HandleSingleBatch(ctx)
Expand Down Expand Up @@ -532,6 +534,7 @@ func TestRetryTxnReceipt(t *testing.T) {

txn := types.NewTransaction(0, gethcommon.Address{}, big.NewInt(0), 0, big.NewInt(0), nil)
components.transactor.On("BuildConfirmBatchTxn").Return(txn, nil)
components.transactor.On("GetCurrentBlockNumber").Return(uint32(10), nil)
components.txnManager.On("ProcessTransaction").Return(nil)

err = batcher.HandleSingleBatch(ctx)
Expand Down

0 comments on commit cbde875

Please sign in to comment.