diff --git a/x-pack/elastic-agent/pkg/core/server/server_test.go b/x-pack/elastic-agent/pkg/core/server/server_test.go index 5cdb0a32b2d2..608be5641f93 100644 --- a/x-pack/elastic-agent/pkg/core/server/server_test.go +++ b/x-pack/elastic-agent/pkg/core/server/server_test.go @@ -234,7 +234,6 @@ func TestServer_UpdateConfig(t *testing.T) { cImpl := &StubClientImpl{} c := newClientFromApplicationState(t, as, cImpl) require.NoError(t, c.Start(context.Background())) - require.NoError(t, c.Start(context.Background())) defer c.Stop() // clients should get initial check-ins then set as healthy