test(inputs.procstat): Resolve flaky test when PID exists (#14856)
This commit is contained in:
parent
b19389533c
commit
8346f36682
|
|
@ -589,7 +589,7 @@ func TestProcstatLookupMetric(t *testing.T) {
|
||||||
|
|
||||||
var acc testutil.Accumulator
|
var acc testutil.Accumulator
|
||||||
require.NoError(t, p.Gather(&acc))
|
require.NoError(t, p.Gather(&acc))
|
||||||
require.Len(t, acc.GetTelegrafMetrics(), 1)
|
require.NotEmpty(t, acc.GetTelegrafMetrics())
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGather_SameTimestamps(t *testing.T) {
|
func TestGather_SameTimestamps(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue