From 8e9bce41cc9c961ac2b76fdbc093dde18ab71772 Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:32:47 -0600 Subject: [PATCH] Update otelcol/collector_test.go Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com> --- otelcol/collector_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otelcol/collector_test.go b/otelcol/collector_test.go index 6a7bd1f78b3..7f42b3d71a4 100644 --- a/otelcol/collector_test.go +++ b/otelcol/collector_test.go @@ -525,7 +525,7 @@ func TestCollectorConfmapLogs(t *testing.T) { require.NotNil(t, col.ol) require.Greater(t, col.ol.Len(), 0) - messages := make([]string, 0) + messages := make([]string, 0, col.ol.Len()) for _, l := range col.ol.All() { messages = append(messages, l.Message) }