From 230b3fbc83e025376ae1b4840cb05e497c2a1b7f Mon Sep 17 00:00:00 2001 From: Piotr <17101802+thampiotr@users.noreply.github.com> Date: Fri, 30 Jun 2023 10:55:59 +0100 Subject: [PATCH] Fix broken test on Windows (#4313) --- component/loki/source/windowsevent/component_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/loki/source/windowsevent/component_test.go b/component/loki/source/windowsevent/component_test.go index 514e70973c73..8d838b564f99 100644 --- a/component/loki/source/windowsevent/component_test.go +++ b/component/loki/source/windowsevent/component_test.go @@ -58,7 +58,7 @@ func TestEventLogger(t *testing.T) { case <-ctx.Done(): // Fail! require.True(t, false) - case e := <-rec: + case e := <-rec.Chan(): if strings.Contains(e.Line, tm) { found = true break