diff --git a/internal/pkg/agent/cmd/install.go b/internal/pkg/agent/cmd/install.go index 7b4c40e7a27..2356e8d3b8d 100644 --- a/internal/pkg/agent/cmd/install.go +++ b/internal/pkg/agent/cmd/install.go @@ -211,7 +211,7 @@ func installCmd(streams *cli.IOStreams, cmd *cobra.Command) error { return } oLogs := logp.ObserverLogs().TakeAll() - fmt.Fprintf(os.Stderr, "Error uninstalling. Printing logs\n") + fmt.Fprintf(os.Stderr, "Error uninstalling. Printing logs\n") for _, oLog := range oLogs { fmt.Fprintf(os.Stderr, "%v\n", oLog.Entry) } diff --git a/internal/pkg/agent/cmd/uninstall.go b/internal/pkg/agent/cmd/uninstall.go index d14c2b51840..2cad93e1b3a 100644 --- a/internal/pkg/agent/cmd/uninstall.go +++ b/internal/pkg/agent/cmd/uninstall.go @@ -103,7 +103,7 @@ func uninstallCmd(streams *cli.IOStreams, cmd *cobra.Command) error { return } oLogs := logp.ObserverLogs().TakeAll() - fmt.Fprintf(os.Stderr, "Error uninstalling. Printing logs\n") + fmt.Fprintf(os.Stderr, "Error uninstalling. Printing logs\n") for _, oLog := range oLogs { fmt.Fprintf(os.Stderr, "%v\n", oLog.Entry) } diff --git a/pkg/testing/fixture_install.go b/pkg/testing/fixture_install.go index ad1e2f8fe14..23edbde1ebe 100644 --- a/pkg/testing/fixture_install.go +++ b/pkg/testing/fixture_install.go @@ -130,7 +130,7 @@ func NewBool(value bool) *bool { func (f *Fixture) Install(ctx context.Context, installOpts *InstallOpts, opts ...process.CmdOption) ([]byte, error) { f.t.Logf("[test %s] Inside fixture install function", f.t.Name()) - // check for running agents before installing + // check for running agents before installing, but proceed anyway assert.Empty(f.t, getElasticAgentProcesses(f.t), "there should be no running agent at beginning of Install()") switch f.packageFormat {