Skip to content

Commit

Permalink
fix typo and adjust comment (#4406)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ authored Mar 13, 2024
1 parent 7541561 commit 5bda00f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/agent/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/agent/cmd/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/testing/fixture_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5bda00f

Please sign in to comment.