diff --git a/test/harvest/facter_test.go b/test/harvest/facter_test.go index a2b789739..737eb1187 100644 --- a/test/harvest/facter_test.go +++ b/test/harvest/facter_test.go @@ -39,6 +39,7 @@ func TestFacter(t *testing.T) { ctx.On("SendData", mock.Anything).Return().Run(func(args mock.Arguments) { ch <- args[0].(agent.PluginOutput) }) + ctx.SendDataWg.Add(1) facterPlugin := pluginsLinux.NewFacterPlugin(ctx) go facterPlugin.Run()