From c1e3d638212d6f6f2b3504a4cdbdf152f9724799 Mon Sep 17 00:00:00 2001 From: Blake Rouse Date: Tue, 14 Jul 2020 09:54:33 -0400 Subject: [PATCH] Fix data race issue in tests. (#19894) (#19895) (cherry picked from commit 751468001be2a2a198a387908767d126c81e97f6) --- x-pack/elastic-agent/pkg/core/server/server_test.go | 1 - 1 file changed, 1 deletion(-) 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 0c26a44ed762..f57546547d71 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