Skip to content

Commit

Permalink
Removing testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Aug 21, 2023
1 parent 6cb1746 commit 2af8c30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions internal/pkg/agent/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,6 @@ func run(override cfgOverrider, testingMode bool, fleetInitTimeout time.Duration
l.Error(errors.New(err, "failed to invoke rollback watcher"))
}

// FIXME: for testing only!
time.Sleep(10 * time.Second)
return errors.New("deliberately crashing agent (after invoking watcher)")

if allowEmptyPgp, _ := release.PGP(); allowEmptyPgp {
l.Info("Elastic Agent has been built with security disabled. Elastic Agent will not verify signatures of upgrade artifact.")
}
Expand Down
3 changes: 1 addition & 2 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

package version

// FIXME: for testing only!
const defaultBeatVersion = "8.12.0"
const defaultBeatVersion = "8.11.0"
const Agent = defaultBeatVersion

0 comments on commit 2af8c30

Please sign in to comment.