From dfbfd96bc22fbde6bd37150139ceefac68d8aad4 Mon Sep 17 00:00:00 2001 From: jhvaras Date: Mon, 26 Oct 2020 10:52:19 +0100 Subject: [PATCH] fix: facter harvest test (#187) --- test/harvest/facter_test.go | 1 + 1 file changed, 1 insertion(+) 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()