diff --git a/core/cmd/local_client.go b/core/cmd/local_client.go index e5887b903e5..80a32d42c0b 100644 --- a/core/cmd/local_client.go +++ b/core/cmd/local_client.go @@ -521,11 +521,6 @@ func (cli *Client) RebroadcastTransactions(c *clipkg.Context) (err error) { if err != nil { return cli.errorOut(errors.Wrap(err, "fatal error instantiating application")) } - defer func() { - if serr := app.Stop(); serr != nil { - err = multierr.Append(err, serr) - } - }() pwd, err := utils.PasswordFromFile(c.String("password")) if err != nil { return cli.errorOut(fmt.Errorf("error reading password: %+v", err)) diff --git a/core/cmd/local_client_test.go b/core/cmd/local_client_test.go index 3a0f3b783d2..d76ca2ce64d 100644 --- a/core/cmd/local_client_test.go +++ b/core/cmd/local_client_test.go @@ -240,7 +240,6 @@ func TestClient_RebroadcastTransactions_Txm(t *testing.T) { app := mocks.NewApplication(t) app.On("GetSqlxDB").Return(sqlxDB) app.On("GetKeyStore").Return(keyStore) - app.On("Stop").Return(nil) app.On("ID").Maybe().Return(uuid.NewV4()) ethClient := evmtest.NewEthClientMockWithDefaultChain(t) app.On("GetChains").Return(chainlink.Chains{EVM: cltest.NewChainSetMockWithOneChain(t, ethClient, evmtest.NewChainScopedConfig(t, config))}).Maybe() @@ -313,7 +312,6 @@ func TestClient_RebroadcastTransactions_OutsideRange_Txm(t *testing.T) { app := mocks.NewApplication(t) app.On("GetSqlxDB").Return(sqlxDB) app.On("GetKeyStore").Return(keyStore) - app.On("Stop").Return(nil) app.On("ID").Maybe().Return(uuid.NewV4()) ethClient := evmtest.NewEthClientMockWithDefaultChain(t) ethClient.On("Dial", mock.Anything).Return(nil)