From 2af8c30f16188592ca34309b97900b70d969bbe0 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Mon, 21 Aug 2023 09:59:13 -0700 Subject: [PATCH] Removing testing code --- internal/pkg/agent/cmd/run.go | 4 ---- version/version.go | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/pkg/agent/cmd/run.go b/internal/pkg/agent/cmd/run.go index d78c0749070..9f31c18c4a3 100644 --- a/internal/pkg/agent/cmd/run.go +++ b/internal/pkg/agent/cmd/run.go @@ -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.") } diff --git a/version/version.go b/version/version.go index 3c64241c9cc..65921ed401c 100644 --- a/version/version.go +++ b/version/version.go @@ -4,6 +4,5 @@ package version -// FIXME: for testing only! -const defaultBeatVersion = "8.12.0" +const defaultBeatVersion = "8.11.0" const Agent = defaultBeatVersion