diff --git a/filebeat/input/v2/compat/compat_test.go b/filebeat/input/v2/compat/compat_test.go index 554701cdae84..2617fd26ebe4 100644 --- a/filebeat/input/v2/compat/compat_test.go +++ b/filebeat/input/v2/compat/compat_test.go @@ -85,8 +85,8 @@ func TestRunnerFactory_CheckConfig(t *testing.T) { return &inputest.MockInput{ OnTest: func(_ v2.TestContext) error { countTest++; return nil }, OnRun: func(_ v2.Context, _ beat.PipelineConnector) error { - runWG.Done() countRun++ + runWG.Done() return nil }, }, nil