From f78cbcdf75397196f9a00b782151d4b9a651f00a Mon Sep 17 00:00:00 2001 From: Andrzej Stencel Date: Fri, 24 May 2024 16:44:57 +0200 Subject: [PATCH] Increase timeout for TestStartCollector Fixes https://github.com/elastic/elastic-agent/issues/4814 (hopefully!) --- internal/pkg/otel/run_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/otel/run_test.go b/internal/pkg/otel/run_test.go index a8b31613baf..484ea5d7fc2 100644 --- a/internal/pkg/otel/run_test.go +++ b/internal/pkg/otel/run_test.go @@ -49,7 +49,7 @@ func TestStartCollector(t *testing.T) { if tc.expectedErrorMessage == "" { assert.Eventually(t, func() bool { return otelcol.StateRunning == collector.GetState() - }, 2*time.Second, 200*time.Millisecond) + }, 10*time.Second, 200*time.Millisecond) } collector.Shutdown() wg.Wait()