From c3cab94d5dbf3504d2ddcd08c7cd8f8d1a30acfc Mon Sep 17 00:00:00 2001 From: Steven Soroka Date: Fri, 3 Jul 2020 12:07:42 -0400 Subject: [PATCH] Fix flakey processors.execd test --- plugins/processors/execd/execd_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/processors/execd/execd_test.go b/plugins/processors/execd/execd_test.go index 6f9c6b36b1639..451669ec6a130 100644 --- a/plugins/processors/execd/execd_test.go +++ b/plugins/processors/execd/execd_test.go @@ -52,6 +52,7 @@ func TestExternalProcessorWorks(t *testing.T) { acc.Wait(1) require.NoError(t, e.Stop()) + acc.Wait(9) metrics = acc.GetTelegrafMetrics() m := metrics[0] @@ -70,7 +71,7 @@ func TestExternalProcessorWorks(t *testing.T) { metricTime := m.Time().UnixNano() - // read the other 9 and make sure they're ordered properly + // make sure the other 9 are ordered properly for i := 0; i < 9; i++ { m = metrics[i+1] require.EqualValues(t, metricTime+1, m.Time().UnixNano())