Skip to content

Commit

Permalink
Fix flakey processors.execd test
Browse files Browse the repository at this point in the history
  • Loading branch information
ssoroka committed Jul 3, 2020
1 parent 3140714 commit c3cab94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/processors/execd/execd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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())
Expand Down

0 comments on commit c3cab94

Please sign in to comment.