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