Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't Stop unstarted app in RebroadcastTransactions #8615

Merged
merged 11 commits into from
Mar 16, 2023
5 changes: 0 additions & 5 deletions core/cmd/local_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,11 +519,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))
Expand Down
2 changes: 0 additions & 2 deletions core/cmd/local_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,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()
Expand Down Expand Up @@ -488,7 +487,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)
Expand Down