Fix flakey processors.execd test

This commit is contained in:
Steven Soroka 2020-07-03 12:07:42 -04:00
parent 31407141cf
commit c3cab94d5d
1 changed files with 2 additions and 1 deletions

View File

@ -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())