Skip to content

Commit

Permalink
Updated TXM test for better cleanup (#13698)
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-momin authored Jun 26, 2024
1 parent 33be0f2 commit 36b9645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/chains/evm/txmgr/txmgr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,11 +603,11 @@ func TestTxm_GetTransactionStatus(t *testing.T) {
ethClient.On("PendingNonceAt", mock.Anything, mock.Anything).Return(uint64(0), nil).Maybe()
feeEstimator := gasmocks.NewEvmFeeEstimator(t)
feeEstimator.On("Start", mock.Anything).Return(nil).Once()
feeEstimator.On("Close", mock.Anything).Return(nil).Once()
feeEstimator.On("OnNewLongestChain", mock.Anything, mock.Anything).Once()
txm, err := makeTestEvmTxm(t, db, ethClient, feeEstimator, cfg.EVM(), cfg.EVM().GasEstimator(), cfg.EVM().Transactions(), gcfg.Database(), gcfg.Database().Listener(), ethKeyStore)
require.NoError(t, err)
err = txm.Start(ctx)
require.NoError(t, err)
servicetest.Run(t, txm)

head := &evmtypes.Head{
Hash: utils.NewHash(),
Expand Down

0 comments on commit 36b9645

Please sign in to comment.